minor fix
This commit is contained in:
parent
cc36067995
commit
3f0ab5bdc2
|
@ -17,7 +17,7 @@ class Community(Base):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def init_table():
|
def init_table():
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
default = session.query(Community).filter(Community.slug == "default").first()
|
default = session.query(Community).filter(Community.slug == "discours").first()
|
||||||
if not default:
|
if not default:
|
||||||
default = Community.create(
|
default = Community.create(
|
||||||
name = "Дискурс",
|
name = "Дискурс",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user