]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/photo/admin.py
Update copyright years
[sommitrealweird.git] / sommitrealweird / photo / admin.py
index 90c48b217b4937dac9d3e782f9709c3b2b55b5a7..6f71cbe91c6ccba4660a8a3d306217f7ef80b747 100644 (file)
@@ -3,6 +3,10 @@ from django.contrib import admin
 
 class AlbumAdmin(admin.ModelAdmin):
     prepopulated_fields = { "slug": ("name",) }
+    ordering = ( 'name', )
+
+class PhotoAdmin(admin.ModelAdmin):
+    ordering = ( 'image', )
 
 admin.site.register(Album, AlbumAdmin)
-admin.site.register(Photo)
+admin.site.register(Photo, PhotoAdmin)