Fixed recording release to default false

This commit is contained in:
Scott Bragg 2017-01-15 15:39:44 +11:00
parent 8cf4bf3490
commit 37dd7dd15b

View file

@ -230,7 +230,7 @@ def schedule_json(request):
# base proposals # base proposals
"license": "CC BY", "license": "CC BY",
"tags": "", "tags": "",
"released": True, "released": False,
"contact": [], "contact": [],
} }
if hasattr(slot.content, "proposal"): if hasattr(slot.content, "proposal"):
@ -250,6 +250,7 @@ def schedule_json(request):
reverse("schedule_presentation_detail", args=[slot.content.pk]) reverse("schedule_presentation_detail", args=[slot.content.pk])
), ),
"cancelled": slot.content.cancelled, "cancelled": slot.content.cancelled,
"released": slot.content.proposal.recording_release
}) })
if not slot.content.speaker.twitter_username == '': if not slot.content.speaker.twitter_username == '':
slot_data["twitter_id"] = slot.content.speaker.twitter_username slot_data["twitter_id"] = slot.content.speaker.twitter_username