X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/22e333d5e75ef180cf3b440f5c00e86f507476a8..075239c730821f8acd231cd25987bb1c16031421:/sommitrealweird/photo/admin.py?ds=inline diff --git a/sommitrealweird/photo/admin.py b/sommitrealweird/photo/admin.py index d45b4c1..5a7ae2f 100644 --- a/sommitrealweird/photo/admin.py +++ b/sommitrealweird/photo/admin.py @@ -1,11 +1,11 @@ -from models import Album, Photo +from photo.models import Album, Photo from django.contrib import admin 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)