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,7 +17,7 @@ class LastesGeometriesMixin(ContextMixin):
return context
class GeometryListView(ListView, LastesGeometriesMixin):
model = Geometry
queryset = Geometry.objects.all().filter(public = True).order_by('date')
paginate_by = 50
paginate_orphans = 25
page_kwarg = 'page'