fixed warnings w/ burnettk
This commit is contained in:
parent
4e6eb974da
commit
343b777804
|
@ -11,6 +11,6 @@ class GroupModel(FlaskBpmnGroupModel):
|
|||
__table_args__ = {"extend_existing": True}
|
||||
new_name_two = db.Column(db.String(255))
|
||||
user_group_assignments = relationship(
|
||||
"UserGroupAssignmentModel", cascade="all, delete"
|
||||
"UserGroupAssignmentModel", cascade="delete"
|
||||
)
|
||||
users = relationship("UserModel", secondary="user_group_assignment")
|
||||
users = relationship("UserModel", viewonly=True, secondary="user_group_assignment", overlaps="user_group_assignments,users")
|
||||
|
|
|
@ -12,6 +12,6 @@ class UserModel(db.Model):
|
|||
name = db.Column(db.String(50))
|
||||
email = db.Column(db.String(50))
|
||||
user_group_assignments = relationship(
|
||||
"UserGroupAssignmentModel", cascade="all, delete"
|
||||
"UserGroupAssignmentModel", cascade="delete"
|
||||
)
|
||||
groups = relationship("GroupModel", secondary="user_group_assignment")
|
||||
groups = relationship("GroupModel", viewonly=True, secondary="user_group_assignment", overlaps="user_group_assignments,users")
|
||||
|
|
|
@ -17,5 +17,5 @@ class UserGroupAssignmentModel(db.Model):
|
|||
id = db.Column(db.Integer, primary_key=True)
|
||||
user_id = db.Column(ForeignKey(UserModel.id), nullable=False)
|
||||
group_id = db.Column(ForeignKey(GroupModel.id), nullable=False)
|
||||
group = relationship("GroupModel")
|
||||
user = relationship("UserModel")
|
||||
group = relationship("GroupModel", overlaps="groups,user_group_assignments,users")
|
||||
user = relationship("UserModel", overlaps="groups,user_group_assignments,users")
|
||||
|
|
Loading…
Reference in New Issue