Update comment

This commit is contained in:
shamoon 2024-11-16 10:19:33 -08:00
parent e08fd79265
commit 78ba55e29f

View File

@ -201,7 +201,7 @@ class SelectField(serializers.CharField):
super().__init__(max_length=16)
def to_internal_value(self, data):
# Test if the supplied value is not an id
# If the supplied value is the option label instead of the ID
try:
data = next(
option.get("id")