X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/22e333d5e75ef180cf3b440f5c00e86f507476a8..5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03:/sommitrealweird/photo/admin.py?ds=sidebyside diff --git a/sommitrealweird/photo/admin.py b/sommitrealweird/photo/admin.py index d45b4c1..6f71cbe 100644 --- a/sommitrealweird/photo/admin.py +++ b/sommitrealweird/photo/admin.py @@ -5,7 +5,7 @@ class AlbumAdmin(admin.ModelAdmin): prepopulated_fields = { "slug": ("name",) } ordering = ( 'name', ) -class PhotoAdmin(admin.PhotoAdmin): +class PhotoAdmin(admin.ModelAdmin): ordering = ( 'image', ) admin.site.register(Album, AlbumAdmin)