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