forked from 0x2620/pandora
log addEntity in changelog
This commit is contained in:
parent
ae55130f47
commit
c73ac10ed4
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ def addEntity(request, data):
|
||||||
entity.user = request.user
|
entity.user = request.user
|
||||||
entity.matches = 0
|
entity.matches = 0
|
||||||
entity.save()
|
entity.save()
|
||||||
|
data['name'] = name
|
||||||
|
add_changelog(request, data, entity.get_id())
|
||||||
response = json_response(status=200, text='created')
|
response = json_response(status=200, text='created')
|
||||||
response['data'] = entity.json()
|
response['data'] = entity.json()
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
|
|
Loading…
Reference in a new issue