minor: relationship key definitions to strings

Using the objects directly was causing type checking issues. Strings are equivalent so no functional change.
This commit is contained in:
Chris Milne 2026-06-16 11:19:22 +01:00
parent 3e4f68dd9b
commit 0a867c9c90
2 changed files with 11 additions and 5 deletions

View file

@ -42,7 +42,7 @@ class Permission(Base):
),
)
service_rel = relationship("Service", foreign_keys=[service_id])
service_rel = relationship("Service", foreign_keys="Permission.service_id")
@property
def service_name(self):