from __future__ import absolute_import

from django.contrib.auth.decorators import login_required

from photos.models import Album, Photo
from photos.views import AlbumModelView, PhotoModelView

from zivinetz.views.decorators import drudge_required


album_views = AlbumModelView(Album,
    view_decorator=login_required,
    base_template='zivinetz/base.html',
    paginate_by=20,
    )
photo_views = AlbumModelView(Album,
    view_decorator=login_required,
    base_template='zivinetz/base.html',
    paginate_by=20,
    )

@@ -387,37 +387,37 @@
 )%0Aphoto_views = 
-Album
+Photo
 ModelView(Album,
@@ -402,37 +402,37 @@
  PhotoModelView(
-Album
+Photo
 ,%0A    view_decor

Fix PhotoModelView instantiation