diff options
Diffstat (limited to 'website')
-rw-r--r-- | website/forms.py | 2 |
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 |