Browse Source

Fix external link validation #174

Peter Justin 9 years ago
parent
commit
593450e405
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/management/forms.py

+ 1 - 1
flaskbb/management/forms.py

@@ -327,7 +327,7 @@ class ForumForm(Form):
 
     def validate_external(self, field):
         if hasattr(self, "forum"):
-            if self.forum.topics:
+            if self.forum.topics.count() > 0:
                 raise ValidationError(_("You cannot convert a forum that "
                                         "contain topics in a external link."))