@classmethod<EOL><INDENT>def get_by_user(cls, user_id, with_deleted=False):<DEDENT>
query = cls.query.filter_by(<EOL>id_user=user_id<EOL>)<EOL>if not with_deleted:<EOL><INDENT>query = query.filter(cls.deleted_at.is_(None))<EOL><DEDENT>return query.order_by(db.asc(Community.title))<EOL>
Get a community.