documentcloud
documentcloud copied to clipboard
Entity creation
This is an initial PR for the purposes of discussing the changes so far to support the creation of freestanding entities that aren't necessarily associated with documents.
Additions:
- route that maps the
/api/freestanding_entitiesendpoint toFreestandingEntityViewSet. FreestandingEntityViewSetto handle GET and POSTs to the endpoint.- Unit test of existing
_get_or_create_entitiesmethod. - Test for
FreestandingEntityViewSet. Currently, this only runs when only thedocumentcloud/documentstests are run. When all of the tests are run withinv testthis test fails. EntityAdminso that freestanding entities can be viewed in the Django admin UI.
@mitchelljkotler Just added the latest requested changes.