fix flake8

This commit is contained in:
Richard Schreiber
2026-09-21 09:21:56 +02:00
parent 3fc0ddd1d5
commit 6aff1cf55c
+1
View File
@@ -649,6 +649,7 @@ class KeyLabelObjectListField(serializers.Field):
if not value:
# normalize empty lists to None
return None
# django added unneccessary keys DELETE, ORDER through formsets, filter them here for backwards compat
def strip_unknown_keys(v):
return {k: v[k] for k in v.keys() if k in ("key", "label")}