title: How to display the image from ImageField() in Django admin interface?
body: <p>I want to display a small thumbnail-like image in my Django admin interface. How should I do this? Also it doesn't seem to display any SVG files.</p>
  
  <p><strong>models.py:</strong></p>
  
  <pre><code>from django.db import models
  import os
  from PIL import Image
  from datetime import date
  import datetime
  from .validators import validate_file_extension
  import base64
  
  def get_directory_path(instance, filename):
  
      today = date.today()
      t = datetime.datetime.now() 
      day, month, year = today.day, today.month, today.year
      hour, minutes, seconds = t.hour, t.minute, t.second
  filename = str(day) + str(month) + str(year) + str(hour) + str(minutes) + str(seconds) + '.png'
      dir = 'media'
      path = '{0}/{1}'.format(dir, filename)
      return path
  
  class Image(models.Model):
      image = models.FileField(upload_to = get_directory_path, null = True , validators=[validate_file_extension])
      created_date = models.DateTimeField(auto_now = True)
  
      def __str__(self):
          return str(self.id)
  </code></pre>