Removed unnecessary fields from talk views.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 05 Nov 2009 13:54:57 +0530
changeset 11 ccd48e1468bd
parent 10 6bb24e2e6d9c
child 12 39f05885c9e7
Removed unnecessary fields from talk views.
project/kiwipycon/talk/forms.py
project/kiwipycon/talk/views.py
--- a/project/kiwipycon/talk/forms.py	Thu Nov 05 03:48:50 2009 +0530
+++ b/project/kiwipycon/talk/forms.py	Thu Nov 05 13:54:57 2009 +0530
@@ -31,7 +31,7 @@
         max_length=1024,
         widget=forms.TextInput(attrs={'size':'50'}))
     abstract = forms.CharField(widget=forms.Textarea, required=True,
-        help_text=u'Summary of proposed presentation (around 30 words)')
+        help_text=u'Summary of proposed presentation (In 300-700 words)')
 #    outline = forms.CharField(widget=forms.Textarea, required=True,
 #        help_text=u'Outline of proposed presentation (around 200 words)')
 #    topic = forms.ChoiceField(choices=TOPIC_CHOICES,
--- a/project/kiwipycon/talk/views.py	Thu Nov 05 03:48:50 2009 +0530
+++ b/project/kiwipycon/talk/views.py	Thu Nov 05 13:54:57 2009 +0530
@@ -73,13 +73,13 @@
             talk.contact = form.data.get('contact')
             talk.title = form.data.get('title')
             talk.abstract = form.data.get('abstract')
-            talk.outline = form.data.get('outline')
+#            talk.outline = form.data.get('outline')
             talk.topic = form.data.get('topic')
-            talk.topic_other = form.data.get('topic_other')
+#            talk.topic_other = form.data.get('topic_other')
             talk.duration = form.data.get('duration')
             talk.audience = form.data.get('audience')
-            talk.audience_other = form.data.get('audience_other')
-            talk.tags = form.data.get('tags')
+#            talk.audience_other = form.data.get('audience_other')
+#            talk.tags = form.data.get('tags')
             talk.save()
             # Saved.. redirect
             redirect_to = reverse('kiwipycon_account')
@@ -92,13 +92,13 @@
                                     'contact' : talk.contact,
                                     'title' : talk.title,
                                     'abstract' : talk.abstract,
-                                    'outline' : talk.outline,
+#                                    'outline' : talk.outline,
                                     'topic' : talk.topic,
-                                    'topic_other' : talk.topic_other,
+#                                    'topic_other' : talk.topic_other,
                                     'duration' : talk.duration,
                                     'audience' : talk.audience,
-                                    'audience_other' : talk.audience_other,
-                                    'tags' : talk.tags,
+#                                    'audience_other' : talk.audience_other,
+#                                    'tags' : talk.tags,
             })
 
     return render_to_response(template_name, RequestContext(request, locals()))