We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17cc51d commit 95b0d5bCopy full SHA for 95b0d5b
blog/views.py
@@ -17,12 +17,10 @@ def get_allow_future(self):
17
return self.request.user.is_staff
18
19
def get_queryset(self):
20
- if self.request.user.is_staff:
21
- return Entry.objects.all()
22
- else:
23
- return Entry.objects.published()
+ return Entry.objects.published()
24
25
def get_context_data(self, **kwargs):
+ """ """
26
context = super().get_context_data(**kwargs)
27
28
events_queryset = Event.objects.future()
0 commit comments