Skip to content
Snippets Groups Projects
Commit 42d3036d authored by Jiří Setnička's avatar Jiří Setnička
Browse files

DB: Přidání vztahu ve směru users->participants

parent 92c8da38
Branches
No related tags found
1 merge request!20Vylepšené vyhledávání
......@@ -240,6 +240,7 @@ class User(Base):
note = Column(Text, nullable=False, server_default=text("''::text"))
roles = relationship('UserRole', primaryjoin='UserRole.user_id == User.user_id')
participants = relationship('Participant', primaryjoin='Participant.user_id == User.user_id')
def full_name(self) -> str:
return self.first_name + ' ' + self.last_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment