X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/f2dedecf621902515d68eb84dfd2c8da036c578b..02b94350acc564364a65633b4ca15b62e3cd3f00:/sommitrealweird/photo/admin.py 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)