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)