forked from polka_billy/porridger
async completely fixed
This commit is contained in:
@ -17,8 +17,8 @@ class User(Base):#класс пользователя
|
||||
num_of_ratings = Column(Integer, default=0) # количество оценок (т.е. то, сколько раз другие пользователи оценили текущего)
|
||||
reg_date = Column(Date) # дата регистрации
|
||||
|
||||
announcements = relationship("Announcement", back_populates="user")
|
||||
trashboxes_chosen = relationship("Trashbox", back_populates="user")
|
||||
announcements = relationship("Announcement", back_populates="user", lazy='selectin')
|
||||
trashboxes_chosen = relationship("Trashbox", back_populates="user", lazy='selectin')
|
||||
|
||||
class Announcement(Base): #класс объявления
|
||||
__tablename__ = "announcements"
|
||||
|
Reference in New Issue
Block a user