diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-08-30 10:01:25 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-08-30 10:01:25 -0600 |
commit | 7b752421e4982c4ef9cce0adfdc439daa58a832b (patch) | |
tree | 622cf0b403293469b1756dd37bdbcd63bf393fe4 /askbot/forms.py | |
parent | 1dbf72e06e8b3e6279a5b5d7ab0ac18810729472 (diff) | |
download | askbot-7b752421e4982c4ef9cce0adfdc439daa58a832b.tar.gz askbot-7b752421e4982c4ef9cce0adfdc439daa58a832b.tar.bz2 askbot-7b752421e4982c4ef9cce0adfdc439daa58a832b.zip |
Temporal: commented the old tag/group relationship to fix later
Diffstat (limited to 'askbot/forms.py')
-rw-r--r-- | askbot/forms.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/askbot/forms.py b/askbot/forms.py index b75bf6f0..4d13fc02 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -938,14 +938,14 @@ class CreateAskWidgetForm(forms.Form, FormWithHideableFields): def __init__(self, *args, **kwargs): from askbot.models import Tag super(CreateAskWidgetForm, self).__init__(*args, **kwargs) - self.fields['group'] = forms.ModelChoiceField( - queryset=get_groups().exclude(name__startswith='_internal_'), - required=False - ) - self.fields['tag'] = forms.ModelChoiceField(queryset=Tag.objects.get_content_tags(), + #self.fields['group'] = forms.ModelChoiceField( + # queryset=get_groups().exclude(name__startswith='_internal_'), + # required=False + #) + self.fields['tag'] = forms.ModelChoiceField(queryset=Tag.objects.get_content_tags(), required=False) - if not askbot_settings.GROUPS_ENABLED: - self.hide_field('group') + #if not askbot_settings.GROUPS_ENABLED: + # self.hide_field('group') class CreateQuestionWidgetForm(forms.Form, FormWithHideableFields): title = forms.CharField(max_length=100) @@ -953,22 +953,22 @@ class CreateQuestionWidgetForm(forms.Form, FormWithHideableFields): tagnames = forms.CharField(label=_('tags'), max_length=50) search_query = forms.CharField(max_length=50, required=False) order_by = forms.ChoiceField( - choices=const.SEARCH_ORDER_BY, + choices=const.SEARCH_ORDER_BY, initial='-added_at' ) style = forms.CharField( - widget=forms.Textarea, - initial=const.DEFAULT_QUESTION_WIDGET_STYLE, + widget=forms.Textarea, + initial=const.DEFAULT_QUESTION_WIDGET_STYLE, required=False ) def __init__(self, *args, **kwargs): super(CreateQuestionWidgetForm, self).__init__(*args, **kwargs) self.fields['tagnames'] = TagNamesField() - self.fields['group'] = forms.ModelChoiceField( - queryset=get_groups().exclude(name__startswith='_internal'), - required=False - ) + #self.fields['group'] = forms.ModelChoiceField( + # queryset=get_groups().exclude(name__startswith='_internal'), + # required=False + #) class AskByEmailForm(forms.Form): """:class:`~askbot.forms.AskByEmailForm` |