This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user