always update cat id in json data on save

This commit is contained in:
Seth Ladygo
2019-05-31 04:53:54 -07:00
parent f9ebcf7851
commit 26ff012903

View File

@ -74,10 +74,10 @@ def save_catalog(request):
cat.update_metadata()
cat.save()
if not id:
# new catalog: update id in json and resave
cat.data['id'] = cat.id
cat.save()
# update id in json data and resave
# in case new catalog or copied catalog
cat.data['id'] = cat.id
cat.save()
cat.queue_render()