Update the document app API endpoints.

Use resource/<pk>/subresource/<pk> scheme.
This commit is contained in:
Roberto Rosario
2017-02-14 02:42:40 -04:00
parent f67443f0d5
commit 81e090f375
7 changed files with 308 additions and 134 deletions

View File

@@ -84,7 +84,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
def test_document_list_view_with_permissions(self):
self.grant(permission=permission_document_view)
response = self.get('documents:document_list')
self.assertContains(response, 'Total: 1', status_code=200)
self.assertContains(response, self.document.label, status_code=200)
def _edit_document_type(self, document_type):
return self.post(