diff gcalendar/views.py @ 1096:d9cd3180c12c

More GCalendar V3 conversion in progress. Built a brand new post editor. It is hardcoded into GCalendar right now. We will make it more general in the future.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Jun 2016 21:16:09 -0500
parents 110bbc78a482
children deed541ca79d
line wrap: on
line diff
--- a/gcalendar/views.py	Mon May 30 21:09:26 2016 -0500
+++ b/gcalendar/views.py	Tue Jun 14 21:16:09 2016 -0500
@@ -49,6 +49,7 @@
     return render(request, 'gcalendar/event.html', {
         'title': 'Add Calendar Event',
         'form': form,
+        'is_new': True,
         'V3_DESIGN': True,
         })
 
@@ -97,6 +98,8 @@
     return render(request, 'gcalendar/event.html', {
         'title': 'Change Calendar Event',
         'form': form,
+        'is_new': False,
+        'V3_DESIGN': True,
         })