mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Update comment
This commit is contained in:
parent
e08fd79265
commit
78ba55e29f
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user