Ooops ...
GeometryListView should check the public/private flag
This commit is contained in:
parent
f11690d987
commit
21aaad38cd
|
@ -17,12 +17,12 @@ class LastesGeometriesMixin(ContextMixin):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
class GeometryListView(ListView, LastesGeometriesMixin):
|
class GeometryListView(ListView, LastesGeometriesMixin):
|
||||||
model = Geometry
|
queryset = Geometry.objects.all().filter(public = True).order_by('date')
|
||||||
paginate_by = 50
|
paginate_by = 50
|
||||||
paginate_orphans = 25
|
paginate_orphans = 25
|
||||||
page_kwarg = 'page'
|
page_kwarg = 'page'
|
||||||
context_object_name = 'geometries'
|
context_object_name = 'geometries'
|
||||||
template_name = 'pastebin/geometry_list.html'
|
template_name = 'pastebin/geometry_list.html'
|
||||||
|
|
||||||
|
|
||||||
class GeometryView(DetailView):
|
class GeometryView(DetailView):
|
||||||
|
|
Loading…
Reference in New Issue