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