This commit is contained in:
2022-09-19 01:11:26 +03:00
parent 40ea813399
commit c673008c2a
3 changed files with 67 additions and 46 deletions

View File

@@ -47,7 +47,8 @@ class Shout(Base):
id = None # type: ignore
slug = Column(String, primary_key=True)
community = Column(Integer, ForeignKey("community.id"), nullable=False, comment="Community")
body = Column(String, nullable=False, comment="Body")
body = Column(String, nullable=False, default='ru', comment="Language")
lang = Column(String, nullable=False, comment="Body")
title = Column(String, nullable=True)
subtitle = Column(String, nullable=True)
layout = Column(String, nullable=True)