From: Michael Tremer Date: Wed, 2 Jul 2025 15:00:28 +0000 (+0000) Subject: packages: Automatically load the distro when loading a package X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02d2b3177e3b572187ef097f5da9155cd533a4f;p=pbs.git packages: Automatically load the distro when loading a package Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/packages.py b/src/buildservice/packages.py index fbb7063b..b319e63c 100644 --- a/src/buildservice/packages.py +++ b/src/buildservice/packages.py @@ -434,7 +434,9 @@ class Package(sqlmodel.SQLModel, database.BackendMixin, database.SoftDeleteMixin # Distro - distro: "Distro" = sqlmodel.Relationship() + distro: "Distro" = sqlmodel.Relationship( + sa_relationship_kwargs={ "lazy" : "joined" }, + ) # Build ID