Browse Source

Fix poll vote api

rafalp 6 years ago
parent
commit
94c0434285
1 changed files with 2 additions and 1 deletions
  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