Browse Source

Moderators cannot be left blank. Fixes #13

sh4nks 11 years ago
parent
commit
1bdf08eb65
1 changed files with 3 additions and 0 deletions
  1. 3 0
      flaskbb/admin/forms.py

+ 3 - 0
flaskbb/admin/forms.py

@@ -309,6 +309,9 @@ class ForumForm(Form):
                     raise ValidationError("User %s not found" % moderator)
             field.data = approved_moderators
 
+        else:
+            field.data = approved_moderators
+
     def save(self):
         forum = Forum(title=self.title.data,
                       description=self.description.data,