Ooops ...

GeometryListView should check the public/private flag
This commit is contained in:
sebastian 2014-02-16 23:42:07 +01:00
parent f11690d987
commit 21aaad38cd
1 changed files with 6 additions and 6 deletions

View File

@ -17,12 +17,12 @@ class LastesGeometriesMixin(ContextMixin):
return context
class GeometryListView(ListView, LastesGeometriesMixin):
model = Geometry
paginate_by = 50
paginate_orphans = 25
page_kwarg = 'page'
context_object_name = 'geometries'
template_name = 'pastebin/geometry_list.html'
queryset = Geometry.objects.all().filter(public = True).order_by('date')
paginate_by = 50
paginate_orphans = 25
page_kwarg = 'page'
context_object_name = 'geometries'
template_name = 'pastebin/geometry_list.html'
class GeometryView(DetailView):