From 78ba55e29f029f59d7383d0e3b9bde42dba245fc Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:19:33 -0800 Subject: [PATCH] Update comment --- src/documents/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/filters.py b/src/documents/filters.py index c06a44e78..237973b6f 100644 --- a/src/documents/filters.py +++ b/src/documents/filters.py @@ -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")