Skip to content

Commit

Permalink
Add id to DraftRegistrationDetailSerializer
Browse files Browse the repository at this point in the history
This fixed a similar bug caused by DRF MRO change.

Co-authored-by: John Tordoff <johnetordoff@gmail.com>
  • Loading branch information
cslzchen and Johnetordoff committed Sep 13, 2022
1 parent 6548110 commit 0bb5fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/draft_registrations/serializers.py
Expand Up @@ -143,6 +143,7 @@ class DraftRegistrationDetailSerializer(DraftRegistrationSerializer, DraftRegist
Overrides DraftRegistrationLegacySerializer to make id required.
registration_supplement, node, cannot be changed after draft has been created.
"""
id = IDField(source='_id', required=True)

registration_schema = RegistrationSchemaRelationshipField(
related_view='schemas:registration-schema-detail',
Expand Down

0 comments on commit 0bb5fc5

Please sign in to comment.