Merge pull request #130 from pydata/unpublished-conference-schedule

Show unpublished conference schedule to staff.
This commit is contained in:
Patrick Altman 2016-03-15 19:48:07 -05:00
commit ad8181091a

View file

@ -34,7 +34,10 @@ def fetch_schedule(slug):
def schedule_conference(request):
schedules = Schedule.objects.filter(published=True, hidden=False)
if request.user.is_staff:
schedules = Schedule.objects.filter(hidden=False)
else:
schedules = Schedule.objects.filter(published=True, hidden=False)
sections = []
for schedule in schedules: