Skip to content

Commit

Permalink
Merge pull request #51 from chicagopcdc/pcdc_dev
Browse files Browse the repository at this point in the history
Pcdc dev
  • Loading branch information
grugna authored Feb 13, 2024
2 parents 58d47c6 + 19c2c65 commit 845f09d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion userportaldatamodel/schemas/project_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ProjectSchema(SQLAlchemyAutoSchema):
searches = Nested('SearchSchema', many=True)
requests = Nested('RequestSchema', many=True)
requests = Nested('RequestSchema', many=True, exclude=["project"])
statisticians = Nested('StatisticianSchema', many=True)
associated_users = Nested('AssociatedUserSchema', many=True)
associated_users_roles = Nested("ProjectAssociatedUserSchema", many=True)
Expand Down
6 changes: 3 additions & 3 deletions userportaldatamodel/schemas/request_has_state_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@


class RequestStateSchema(SQLAlchemyAutoSchema):

state = Nested("StateSchema")
request = Nested("RequestSchema")
class Meta:
model = RequestState
include_fk = True
state = Nested("StateSchema")
request = Nested("RequestSchema")

3 changes: 2 additions & 1 deletion userportaldatamodel/schemas/request_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class RequestSchema(SQLAlchemyAutoSchema):
states = Nested('StateSchema', many=True)
project = Nested('ProjectSchema', exclude=["requests",])
consortium_data_contributor = Nested('ConsortiumDataContributorSchema', exclude=["requests",])

request_has_state = Nested('RequestStateSchema', many=True, exclude=['request'])

class Meta:
model = Request
include_fk = True
Expand Down

0 comments on commit 845f09d

Please sign in to comment.