71 talk.slug = slugify(form.data.get('title')) |
71 talk.slug = slugify(form.data.get('title')) |
72 talk.authors_bio = form.data.get('authors_bio') |
72 talk.authors_bio = form.data.get('authors_bio') |
73 talk.contact = form.data.get('contact') |
73 talk.contact = form.data.get('contact') |
74 talk.title = form.data.get('title') |
74 talk.title = form.data.get('title') |
75 talk.abstract = form.data.get('abstract') |
75 talk.abstract = form.data.get('abstract') |
76 talk.outline = form.data.get('outline') |
76 # talk.outline = form.data.get('outline') |
77 talk.topic = form.data.get('topic') |
77 talk.topic = form.data.get('topic') |
78 talk.topic_other = form.data.get('topic_other') |
78 # talk.topic_other = form.data.get('topic_other') |
79 talk.duration = form.data.get('duration') |
79 talk.duration = form.data.get('duration') |
80 talk.audience = form.data.get('audience') |
80 talk.audience = form.data.get('audience') |
81 talk.audience_other = form.data.get('audience_other') |
81 # talk.audience_other = form.data.get('audience_other') |
82 talk.tags = form.data.get('tags') |
82 # talk.tags = form.data.get('tags') |
83 talk.save() |
83 talk.save() |
84 # Saved.. redirect |
84 # Saved.. redirect |
85 redirect_to = reverse('kiwipycon_account') |
85 redirect_to = reverse('kiwipycon_account') |
86 return set_message_cookie(redirect_to, |
86 return set_message_cookie(redirect_to, |
87 msg = u'Your changes have been saved.') |
87 msg = u'Your changes have been saved.') |
90 'id' : id, |
90 'id' : id, |
91 'authors_bio' : talk.authors_bio, |
91 'authors_bio' : talk.authors_bio, |
92 'contact' : talk.contact, |
92 'contact' : talk.contact, |
93 'title' : talk.title, |
93 'title' : talk.title, |
94 'abstract' : talk.abstract, |
94 'abstract' : talk.abstract, |
95 'outline' : talk.outline, |
95 # 'outline' : talk.outline, |
96 'topic' : talk.topic, |
96 'topic' : talk.topic, |
97 'topic_other' : talk.topic_other, |
97 # 'topic_other' : talk.topic_other, |
98 'duration' : talk.duration, |
98 'duration' : talk.duration, |
99 'audience' : talk.audience, |
99 'audience' : talk.audience, |
100 'audience_other' : talk.audience_other, |
100 # 'audience_other' : talk.audience_other, |
101 'tags' : talk.tags, |
101 # 'tags' : talk.tags, |
102 }) |
102 }) |
103 |
103 |
104 return render_to_response(template_name, RequestContext(request, locals())) |
104 return render_to_response(template_name, RequestContext(request, locals())) |
105 |
105 |
106 @login_required() |
106 @login_required() |