diff --git a/smash/web/api_views/daily_planning.py b/smash/web/api_views/daily_planning.py index a6f03f5906fe97338dad89722276e279d2163b0f..773131ec056af9b6b55c919d2bcdcdb44e13c090 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