Skip to content

Commit

Permalink
Remove author (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiyVeretiuk authored and leits committed Jul 19, 2018
1 parent 823e1f1 commit a322619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion openregistry/lots/loki/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def _add_x_PlatformLegalDetails_document(self, request):
lot = request.validated['lot']
document_class = lot.__class__.documents.model_class
document = document_class(PLATFORM_LEGAL_DETAILS_DOC_DATA)
document.author = 'Administrator'
lot.documents.append(document)

def create_lot(self, request):
Expand Down
5 changes: 2 additions & 3 deletions openregistry/lots/loki/tests/blanks/lot_blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,8 +1823,7 @@ def adding_platformLegalDetails_doc(self):
response = self.app.patch_json(
'/{}/documents/{}'.format(lot_id, doc_id),
params={'data': {'title': 'another'}},
status=403,
headers=access_header
)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.json['errors'][0]['description'], 'Can update document only author')
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.json['data']['title'], 'another')

0 comments on commit a322619

Please sign in to comment.