Fix User-Chore relationship with lazy loading
This commit is contained in:
@@ -18,5 +18,5 @@ class User(Base):
|
||||
created_at = Column(DateTime, default=datetime.utcnow)
|
||||
updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
|
||||
|
||||
# Relationships
|
||||
chores = relationship("Chore", back_populates="assigned_user")
|
||||
# Relationships (lazy loaded to avoid circular imports)
|
||||
chores = relationship("Chore", back_populates="assigned_user", lazy="select")
|
||||
|
||||
Reference in New Issue
Block a user