From 2c97ec7106623433e1f313fbf5ff61561b3485f4 Mon Sep 17 00:00:00 2001 From: Sheila Miguez Date: Sun, 28 Sep 2014 12:52:41 -0500 Subject: [PATCH] adds placeholder values for future model changes to ProposalBase" --- symposion/schedule/views.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/symposion/schedule/views.py b/symposion/schedule/views.py index b03aa28a..03fd17e8 100644 --- a/symposion/schedule/views.py +++ b/symposion/schedule/views.py @@ -179,6 +179,17 @@ def schedule_json(request): "duration": slot.length_in_minutes, "kind": slot.kind.label, "section": slot.day.schedule.section.slug, + "conf_key": slot.pk, + # TODO: models should be changed. + # these are model features from other conferences that have forked symposion + # these have been used almost everywhere and are good candidates for + # base proposals + "license": "CC BY", + "tags": "", + "released": True, + "contact": [], + + } if hasattr(slot.content, "proposal"): slot_data.update({ @@ -189,7 +200,7 @@ def schedule_json(request): ] if request.user.is_staff else ["redacted"], "abstract": slot.content.abstract.raw, "description": slot.content.description.raw, - "content_href": "%s://%s%s" % ( + "conf_url": "%s://%s%s" % ( protocol, Site.objects.get_current().domain, reverse("schedule_presentation_detail", args=[slot.content.pk])