dont turn data into string, fixes #2797
This commit is contained in:
parent
5cc23093ef
commit
adb831ce70
1 changed files with 1 additions and 3 deletions
|
@ -177,9 +177,7 @@ def removePlace(request, data):
|
||||||
returns {}
|
returns {}
|
||||||
see: addPlace, editPlace, findPlaces
|
see: addPlace, editPlace, findPlaces
|
||||||
'''
|
'''
|
||||||
if isinstance(data, dict):
|
place = get_object_or_404_json(models.Place, pk=ox.fromAZ(data['id']))
|
||||||
data = data['id']
|
|
||||||
place = get_object_or_404_json(models.Place, pk=ox.fromAZ(data))
|
|
||||||
if place.editable(request.user):
|
if place.editable(request.user):
|
||||||
add_changelog(request, data)
|
add_changelog(request, data)
|
||||||
place.delete()
|
place.delete()
|
||||||
|
|
Loading…
Reference in a new issue