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:
parent
3e4f68dd9b
commit
0a867c9c90
2 changed files with 11 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue