Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Creates a new endpoint returning
paediatric_diabetes_units/paediatric_diabetes_units_trust_list
with the structure:If no pz code is supplied, a list is supplied.
This returns the PZ code, the associated trust and the lead PDU organisation if more than one organisation.
RCPCH has been added as PZ code PZ999
Code changes
Adds a new serializer and a viewset, and a new endpoint to
urls.py
Only GET requests are accepted
All the models are now also registered with admin.
Documentation changes (done or required as a result of this PR)
This is in swagger
Related Issues
This is part of NPDA implementation
As part of this Bedford and Luton (which are the same trust) have been updated to reflect they have different PZ numbers - closes #23