Merge pull request #130 from pydata/unpublished-conference-schedule
Show unpublished conference schedule to staff.
This commit is contained in:
commit
ad8181091a
1 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,9 @@ def fetch_schedule(slug):
|
||||||
|
|
||||||
def schedule_conference(request):
|
def schedule_conference(request):
|
||||||
|
|
||||||
|
if request.user.is_staff:
|
||||||
|
schedules = Schedule.objects.filter(hidden=False)
|
||||||
|
else:
|
||||||
schedules = Schedule.objects.filter(published=True, hidden=False)
|
schedules = Schedule.objects.filter(published=True, hidden=False)
|
||||||
|
|
||||||
sections = []
|
sections = []
|
||||||
|
|
Loading…
Reference in a new issue