This PR is a result of review change requests from #178, #179, #181 and #183, but collates the changes here to avoid complicated rebasing.
This PR:
Fixes a bug in the OrgDetailView, so that it will 404 when an Org is not found.
Changes 404 behaviour of the org grants views to match the detail view, i.e. if the Org doesn't exist in DB, then 404 (instead of returning an empty list).
Adds an exists() method to the Organisation pseudo-model to facilitate this feature, plus tests.
Adds tests for endpoint behaviour when a non-existent Org ID is given.
This PR is a result of review change requests from #178, #179, #181 and #183, but collates the changes here to avoid complicated rebasing.
This PR:
exists()
method to theOrganisation
pseudo-model to facilitate this feature, plus tests.Organisation.get()