0.5.8-panel-upgrade-community-crud-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
2025-06-30 21:25:26 +03:00
parent 9de86c0fae
commit 952b294345
70 changed files with 11345 additions and 2655 deletions

View File

@@ -18,7 +18,7 @@ class CommunityRole(enum.Enum):
ADMIN = "admin"
@classmethod
def as_string_array(cls, roles):
def as_string_array(cls, roles) -> list[str]:
return [role.value for role in roles]
@classmethod
@@ -59,6 +59,7 @@ class Community(BaseModel):
private = Column(Boolean, default=False)
followers = relationship("Author", secondary="community_follower")
created_by_author = relationship("Author", foreign_keys=[created_by])
@hybrid_property
def stat(self):