fix: Remove foreign_keys from User.containers - let SQLAlchemy infer from primaryjoin
This commit is contained in:
parent
14c8bdb5b1
commit
a79a604a14
|
|
@ -39,7 +39,6 @@ class User(UserMixin, db.Model):
|
|||
|
||||
# Multi-Container Support (explicit primaryjoin wegen mehrerer FKs zu User)
|
||||
containers = db.relationship('UserContainer',
|
||||
foreign_keys=['UserContainer.user_id'],
|
||||
primaryjoin='User.id==UserContainer.user_id',
|
||||
back_populates='user',
|
||||
cascade='all, delete-orphan')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user