@classmethod<EOL><INDENT>def create(cls, community_id, user_id, **data):<DEDENT>
with db.session.begin_nested():<EOL><INDENT>obj = cls(id=community_id, id_user=user_id, **data)<EOL>db.session.add(obj)<EOL><DEDENT>return obj<EOL>
Get a community.