From adb831ce70979357c0b468addddb4cbea1c6d35d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 May 2015 13:10:39 +0200 Subject: [PATCH] dont turn data into string, fixes #2797 --- pandora/place/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandora/place/views.py b/pandora/place/views.py index 0e366891c..94714fd81 100644 --- a/pandora/place/views.py +++ b/pandora/place/views.py @@ -177,9 +177,7 @@ def removePlace(request, data): returns {} see: addPlace, editPlace, findPlaces ''' - if isinstance(data, dict): - data = data['id'] - place = get_object_or_404_json(models.Place, pk=ox.fromAZ(data)) + place = get_object_or_404_json(models.Place, pk=ox.fromAZ(data['id'])) if place.editable(request.user): add_changelog(request, data) place.delete()