From 5ac305c620f66c59ab18beb4986a7969b577ce8d Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 Jan 2018 12:20:01 +0100 Subject: [PATCH] pass user --- pandora/documentcollection/views.py | 2 +- pandora/itemlist/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/documentcollection/views.py b/pandora/documentcollection/views.py index 09aff734d..9140a1085 100644 --- a/pandora/documentcollection/views.py +++ b/pandora/documentcollection/views.py @@ -274,7 +274,7 @@ def addCollection(request, data): pos.position = qs.aggregate(Max('position'))['position__max'] + 1 pos.save() response = json_response(status=200, text='created') - response['data'] = collection.json() + response['data'] = collection.json(user=request.user) add_changelog(request, data, collection.get_id()) return render_to_json_response(response) actions.register(addCollection, cache=False) diff --git a/pandora/itemlist/views.py b/pandora/itemlist/views.py index 961326022..649d70f78 100644 --- a/pandora/itemlist/views.py +++ b/pandora/itemlist/views.py @@ -269,7 +269,7 @@ def addList(request, data): pos.position = qs.aggregate(Max('position'))['position__max'] + 1 pos.save() response = json_response(status=200, text='created') - response['data'] = list.json() + response['data'] = list.json(user=request.user) add_changelog(request, data, list.get_id()) return render_to_json_response(response) actions.register(addList, cache=False)