Rafał Pitoń 11 лет назад
Родитель
Сommit
c228cdae1d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      misago/apps/threadtype/posting/forms.py

+ 2 - 1
misago/apps/threadtype/posting/forms.py

@@ -54,7 +54,8 @@ class PostingForm(FloodProtectionMixin, Form, ValidatePostLengthMixin):
             type_fields_call = self.type_fields
         except AttributeError:
             type_fields_call = None
-        type_fields_call()
+        if type_fields_call:
+            type_fields_call()
 
     def clean_thread_weight(self):
         data = self.cleaned_data['thread_weight']