flows: allow uploading of custom flow backgrounds, update default flow background

This commit is contained in:
Jens Langhammer
2020-12-02 14:24:24 +01:00
parent 821458373d
commit cc5a0c23aa
12 changed files with 97 additions and 25 deletions

View File

@ -11,7 +11,7 @@ from passbook.lib.sentry import SentryIgnoredException
def get_attrs(obj: SerializerModel) -> Dict[str, Any]:
"""Get object's attributes via their serializer, and covert it to a normal dict"""
data = dict(obj.serializer(obj).data)
to_remove = ("policies", "stages", "pk")
to_remove = ("policies", "stages", "pk", "background")
for to_remove_name in to_remove:
if to_remove_name in data:
data.pop(to_remove_name)