Commits

Julian Moritz  committed 0840f30

bugfix in admin

  • Participants
  • Parent commits 148f3c1
  • Tags 0.2.3

Comments (0)

Files changed (3)

 NEWS = open(os.path.join(here, 'NEWS.txt')).read()
 
 
-version = '0.2.2'
+version = '0.2.3'
 
 install_requires = [
     'Django',

File src/photos/models.py

     height = models.PositiveIntegerField(_('Height'), editable=False)
     width = models.PositiveIntegerField(_('Width'), editable=False)
     display = models.BooleanField(_('Display'), default=True, help_text=_('Enable to display this photo.'))
-    name = models.CharField(_('Name'), max_length=250, help_text=_('If no name is given, it is created from filename.'))
+    name = models.CharField(_('Name'), max_length=250, help_text=_('If no name is given, it is created from filename.'), blank=True)
     description = models.TextField(_('Description'), blank=True, null=True)
     user = models.ForeignKey(User, editable=False, blank=True, null=True)
     tags = TaggableManager()

File src/photos/templates/photos/admin_thumbnail.html

 {% load thumbnail %}
-<img src="{% thumbnail photo.photo 100x100 crop quality=50 %}" alt="{{ photo.name }}" />
+<img src="{% thumbnail photo.photo 85x65 crop quality=50 %}" alt="{{ photo.name }}" />