]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/forms.py
Added a direct option to mark a post as community wiki, still needs some sort of...
[osqa.git] / forum / forms.py
index 49bd5ffa1c7140b106f237260ce14862b335a2cc..34fa271a1282d94e3f9ce9faba086b273afc4106 100644 (file)
@@ -141,7 +141,7 @@ class AnswerForm(forms.Form):
     def __init__(self, question, *args, **kwargs):
         super(AnswerForm, self).__init__(*args, **kwargs)
 
-        if question.wiki and settings.WIKI_ON:
+        if question.nis.wiki and settings.WIKI_ON:
             self.fields['wiki'].initial = True
 
 
@@ -187,7 +187,7 @@ class EditQuestionForm(forms.Form):
         self.fields['tags'].initial = revision.tagnames
             
         # Once wiki mode is enabled, it can't be disabled
-        if not question.wiki:
+        if settings.WIKI_ON and not question.nis.wiki:
             self.fields['wiki'] = WikiField()
 
 class EditAnswerForm(forms.Form):