Fix removing Metadata in API

Fixes #10411
pull/10547/head
Henry Harutyunyan 2023-05-06 18:49:52 +02:00 zatwierdzone przez LB (Ben Johnston)
rodzic 8251072e6d
commit 3da4b686eb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -238,7 +238,7 @@ class BaseAPIViewSet(GenericViewSet):
for field in cls.detail_only_fields:
try:
all_fields.remove(field)
except KeyError:
except ValueError:
pass
# Get list of configured fields