Skip to content

Commit

Permalink
updated files i should've updated in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Jan 26, 2010
1 parent 0c0890b commit 06756a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions simplegallery/__init__.py
@@ -1,2 +1,2 @@
VERSION = (0, 10, 0, 'a2')
__version__ = '0.10.0a2'
VERSION = (0, 10, 1, 'a1')
__version__ = '0.10.1a1'
2 changes: 1 addition & 1 deletion simplegallery/admin.py
Expand Up @@ -21,7 +21,7 @@ class GalleryAdmin(multilingual.MultilingualModelAdmin):
inlines = [
ImageInline,
]
list_display = ('title', 'description',)
list_display = ('name', 'description',)
search_fields = ('translations__title','translations__description',)
# using ordering somehow results in double querysets
# ordering = ('translations__title', )
Expand Down
4 changes: 3 additions & 1 deletion simplegallery/models.py
Expand Up @@ -10,6 +10,8 @@
from filer.fields.image import FilerImageField

class Gallery(models.Model):
name = models.CharField(max_length=255, unique=True,
help_text=_("A unique identifier for this gallery, this will only be used in the admin panel."))
class Translation(multilingual.Translation):
title = models.CharField(max_length=255, null=True, blank=True)
description = models.TextField(null=True, blank=True)
Expand All @@ -19,7 +21,7 @@ class Meta:
verbose_name_plural = _('galleries')

def __unicode__(self):
return self.title
return self.name

class Image(models.Model):
gallery = models.ForeignKey(Gallery, related_name="images")
Expand Down

0 comments on commit 06756a1

Please sign in to comment.