Skip to content

Commit

Permalink
Add SponsorMembership datasets (for #465)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 22, 2021
1 parent f750f70 commit baf3464
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions funnel/models/sponsor_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,35 @@ class SponsorMembership(ReorderMixin, ImmutableProfileMembershipMixin, db.Model)
__roles__ = {
'all': {'read': {'urls', 'profile', 'project', 'is_promoted', 'label', 'seq'}}
}
__datasets__ = {
'primary': {
'urls',
'uuid_b58',
'offered_roles',
'is_promoted',
'label',
'seq',
'profile',
'project',
},
'without_parent': {
'urls',
'uuid_b58',
'offered_roles',
'is_promoted',
'label',
'seq',
'profile',
},
'related': {
'urls',
'uuid_b58',
'offered_roles',
'is_promoted',
'label',
'seq',
},
}

project_id = immutable(
db.Column(None, db.ForeignKey('project.id', ondelete='CASCADE'), nullable=False)
Expand Down

0 comments on commit baf3464

Please sign in to comment.