flows: allow uploading of custom flow backgrounds, update default flow background
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user