mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Update comment
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user