add new changelog and call add_changelog all over the place
This commit is contained in:
parent
8ec99ddef7
commit
9e9bf30c42
27 changed files with 365 additions and 44 deletions
|
|
@ -14,6 +14,7 @@ from item import utils
|
|||
import models
|
||||
import tasks
|
||||
from user.decorators import capability_required_json
|
||||
from changelog.models import add_changelog
|
||||
|
||||
@capability_required_json('canManageTitlesAndNames')
|
||||
def editName(request, data):
|
||||
|
|
@ -35,6 +36,7 @@ def editName(request, data):
|
|||
person.edited = True
|
||||
person.save()
|
||||
tasks.update_file_paths.delay(person.id)
|
||||
add_changelog(request, data)
|
||||
response['data'] = person.json()
|
||||
return render_to_json_response(response)
|
||||
actions.register(editName, cache=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue