fixmodel
All checks were successful
Deploy to core / deploy (push) Successful in 1m27s

This commit is contained in:
2024-02-20 12:53:15 +03:00
parent 6377bc3d64
commit 8b08e23801
2 changed files with 10 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from services.db import Base
from orm.author import Author
class CommunityAuthor(Base):
@@ -25,4 +26,4 @@ class Community(Base):
pic = Column(String, nullable=False, default='')
created_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
authors = relationship('author', secondary='community_author')
authors = relationship(Author, secondary='shout_author')