Skip to content

Commit

Permalink
Fix: remove school from core_user init
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotheem committed Nov 19, 2024
1 parent 6553ab4 commit 3e20d0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/core/models_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CoreUser(Base):
"CoreSchool",
back_populates="students",
lazy="selectin",
default_factory=dict,
init=False,
)


Expand Down Expand Up @@ -136,6 +136,8 @@ class CoreSchool(Base):
students: Mapped[list["CoreUser"]] = relationship(
"CoreUser",
back_populates="school",
lazy="selectin",
default_factory=list,
)


Expand Down

0 comments on commit 3e20d0d

Please sign in to comment.