]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/photo/admin.py
Update for newer django
[sommitrealweird.git] / sommitrealweird / photo / admin.py
index d45b4c115d71ca1bff71dc57ccadf29ca6b56ae1..5a7ae2fb07c78ecf1919a5a3e6a84130eb21ba1f 100644 (file)
@@ -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)