def METHOD_NAME(self, choices):
    total_choices = len(choices)
    if total_choices < 2:
        raise serializers.ValidationError(
            pgettext(
                "edit poll serializer",
                "You need to add at least two choices to a poll.",
            )
        )
    if total_choices > MAX_POLL_OPTIONS:
        # pylint: disable=line-too-long
        message = npgettext(
            "edit poll serializer",
            "You can't add more than %(limit_value)s option to a single poll (added %(show_value)s).",
            "You can't add more than %(limit_value)s options to a single poll (added %(show_value)s).",
            MAX_POLL_OPTIONS,
        )
        raise serializers.ValidationError(
            message % {"limit_value": MAX_POLL_OPTIONS, "show_value": total_choices}
        )