Anonymous avatar Anonymous committed 0840f30

bugfix in admin

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',

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()

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 }}" />
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.