invenio_groups/models.py
def accept(self):
        """Activate membership."""
        with db.session.begin_nested():
            self.state = MembershipState.ACTIVE
            db.session.merge(self)
def accept(self):
        """Activate membership."""
        with db.session.begin_nested():
            self.state = MembershipState.ACTIVE
            db.session.merge(self)
def accept ( self ) : with db . session . begin_nested ( ) : self . state = MembershipState . ACTIVE db . session . merge ( self )
Activate membership.
Activate membership .