From 0912e94263b0ff94905047232668dd93dfea338d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Oct 2011 17:40:18 +0200 Subject: [PATCH] more event keys --- pandora/event/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora/event/views.py b/pandora/event/views.py index e09841469..b11016f00 100644 --- a/pandora/event/views.py +++ b/pandora/event/views.py @@ -32,7 +32,8 @@ def addEvent(request): existing_names.append(name) if not exists: event = models.Event(name = data['name']) - for key in ('start', 'end', 'alternativeNames'): + for key in ('start', 'startTime', 'end', 'endTime', 'duration', 'durationTime', + 'alternativeNames'): if key in data and data[key]: setattr(event, key, data[key]) event.save() @@ -66,7 +67,8 @@ def editEvent(request): conflict = True conflict_names.append(name) if not conflict: - for key in ('start', 'end', 'alternativeNames'): + for key in ('start', 'startTime', 'end', 'endTime', 'duration', 'durationTime', + 'alternativeNames'): if key in data: setattr(event, key, data[key]) event.save()