From 56aa55222c00437a99dd67266b90efbe110c51fc Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Thu, 11 Oct 2018 09:19:50 +0200 Subject: [PATCH] added appointment id to assist the creation of links to edit appointments --- smash/web/api_views/daily_planning.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smash/web/api_views/daily_planning.py b/smash/web/api_views/daily_planning.py index a6f03f59..773131ec 100644 --- a/smash/web/api_views/daily_planning.py +++ b/smash/web/api_views/daily_planning.py @@ -247,6 +247,7 @@ def events(request, date): subject = { 'name': unicode(appointment_subject), 'id': appointment_subject.id, + 'appointment_id': appointment.id, 'color': RANDOM_COLORS[i], 'start': appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M"), # this indicates only location of the first appointment -- GitLab