1. Mikhail Korobov
  2. django-photo-albums

Commits

Mikhail Korobov  committed e63835b

default template_object_name is object

  • Participants
  • Parent commits d63266e
  • Branches default

Comments (0)

Files changed (1)

File photo_albums/urls.py

View file
  • Ignore whitespace
 class PhotoAlbumSite(PluggableSite):
     
     def __init__(self, instance_name, queryset, app_name='album', 
-                 extra_context=None, template_object_name = None,
+                 extra_context=None, template_object_name = 'object',
                  has_edit_permission = lambda request, obj: True):
         
         super(PhotoAlbumSite, self).__init__(instance_name, queryset, app_name,