summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorJayaram Pai2014-04-28 16:46:49 +0530
committerJayaram Pai2014-04-28 16:46:49 +0530
commit7c3c9f3a0591b4b785e30b22c0cf0d2b33c17b1e (patch)
tree5d5bb7d509dee170f906411a1e06ee88943fc9d9 /website
parent995583afae9fb27b0534a6e8bb35f4c217ff58ab (diff)
downloadFOSSEE-Forum-7c3c9f3a0591b4b785e30b22c0cf0d2b33c17b1e.tar.gz
FOSSEE-Forum-7c3c9f3a0591b4b785e30b22c0cf0d2b33c17b1e.tar.bz2
FOSSEE-Forum-7c3c9f3a0591b4b785e30b22c0cf0d2b33c17b1e.zip
minor bug fixed: on ask a new question
Diffstat (limited to 'website')
-rw-r--r--website/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/forms.py b/website/forms.py
index 7d60ffa..0a81841 100644
--- a/website/forms.py
+++ b/website/forms.py
@@ -66,7 +66,7 @@ seconds= (
class NewQuestionForm(forms.Form):
#fix dirty code
def __init__(self, *args, **kwargs):
- category = kwargs.pop('category')
+ category = kwargs.pop('category', None)
super(NewQuestionForm, self).__init__(*args, **kwargs)
self.fields['category'] = forms.CharField(widget=forms.Select(choices=categories))
self.fields['category'].initial = category