rafalp 6 лет назад
Родитель
Сommit
94c0434285
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      misago/threads/serializers/pollvote.py

+ 2 - 1
misago/threads/serializers/pollvote.py

@@ -31,7 +31,8 @@ class NewVoteSerializer(serializers.Serializer):
             raise serializers.ValidationError(
                 _("One or more of poll choices were invalid.")
             )
-        if clean_choices:
+
+        if not clean_choices:
             raise serializers.ValidationError(_("You have to make a choice."))
 
         return clean_choices