mirror of
https://github.com/pretix/pretix.git
synced 2026-10-02 19:24:42 +00:00
fix flake8
This commit is contained in:
@@ -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")}
|
||||
|
||||
Reference in New Issue
Block a user