Skip to content

Commit 3bb201c

Browse files
ColinToftCopilot
andauthored
Update backend/python/app/models/location_group.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8c578cb commit 3bb201c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/python/app/models/location_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LocationGroup(LocationGroupBase, BaseModel, table=True):
2424
__tablename__ = "location_groups"
2525
location_group_id: UUID = Field(default_factory=uuid4, primary_key=True)
2626
# Relationship to locations
27-
locations: list["Location"] = Relationship()
27+
locations: list["Location"] = Relationship(back_populates="location_group")
2828

2929
@property
3030
def num_locations(self) -> int:

0 commit comments

Comments
 (0)