Fixes celery media path

This commit is contained in:
Mouse Reeve
2020-09-30 19:43:42 -07:00
parent 4fda5c8e22
commit 0b8f8e3659
4 changed files with 18 additions and 2 deletions

View File

@ -249,7 +249,10 @@ def update_from_mappings(obj, data, mappings):
continue
# extract the value in the right format
value = mapping.formatter(value)
try:
value = mapping.formatter(value)
except:
continue
# assign the formatted value to the model
obj.__setattr__(mapping.local_field, value)