always update cat id in json data on save
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user