Commits

b7w committed 7fa75f2

Rename Gallery.title to description

  • Participants
  • Parent commits 674c672

Comments (0)

Files changed (3)

bviewer/core/admin.py

 class GalleryAdmin(ModelAdmin):
     list_select_related = True
 
-    list_display = ('url', 'title', 'top_album', )
+    list_display = ('url', 'top_album', 'description', )
     list_filter = ('user', )
 
     ordering = ('user',)

bviewer/core/models.py

     CACHE_ARCHIVE_SIZE_MIN = 128
     CACHE_ARCHIVE_SIZE_MAX = 2048
 
-    title = models.CharField(max_length=256)
     user = models.ForeignKey(User)
+    description = models.CharField(max_length=256)
 
     url = models.CharField(max_length=16, unique=True)
     home = models.CharField(max_length=256, blank=True, default='')

bviewer/profile/admin.py

     list_select_related = True
     form = AdminGalleryForm
 
-    list_display = ('url', 'title', 'top_album', )
+    list_display = ('url', 'top_album', 'description', )
     exclude = ('user',)
 
     readonly_fields = ('cache_info', )