comparison gcalendar/views.py @ 1021:68c3343f3318

Perform image_check on gcalendar description. Also add image hotlink/upload forms to gcalendar add event page.
author Brian Neal <bgneal@gmail.com>
date Tue, 08 Dec 2015 21:39:19 -0600
parents 74e84f5fc948
children e1c03da72818
comparison
equal deleted inserted replaced
1020:a052798c146c 1021:68c3343f3318
37 form = EventEntryForm(request.POST) 37 form = EventEntryForm(request.POST)
38 if form.is_valid(): 38 if form.is_valid():
39 event = form.save(commit=False) 39 event = form.save(commit=False)
40 event.user = request.user 40 event.user = request.user
41 event.repeat = 'none' 41 event.repeat = 'none'
42 event.save() 42 event.save(html=form.html)
43 return HttpResponseRedirect(reverse('gcalendar-add_thanks')) 43 return HttpResponseRedirect(reverse('gcalendar-add_thanks'))
44 else: 44 else:
45 form = EventEntryForm() 45 form = EventEntryForm()
46 46
47 return render_to_response('gcalendar/event.html', { 47 return render_to_response('gcalendar/event.html', {