diff --git a/pandora/edit/models.py b/pandora/edit/models.py index f2f270221..475d01cfe 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -312,7 +312,6 @@ class Edit(models.Model): 'user', ] response = { - 'type': self.type } _map = { 'posterFrames': 'poster_frames' diff --git a/pandora/edit/views.py b/pandora/edit/views.py index 7292ef126..cb64e3369 100644 --- a/pandora/edit/views.py +++ b/pandora/edit/views.py @@ -201,6 +201,7 @@ def getEdit(request): ''' takes { id: + keys: [] } returns { id: @@ -212,7 +213,7 @@ def getEdit(request): response = json_response() edit = get_edit_or_404_json(data['id']) if edit.accessible(request.user): - response['data'] = edit.json(user=request.user) + response['data'] = edit.json(keys=data.get('keys'), user=request.user) else: response = json_response(status=403, text='not allowed') else: