def reject_record(self, record):
with db.session.begin_nested():<EOL><INDENT>req = InclusionRequest.get(self.id, record.id)<EOL>if req is None:<EOL><INDENT>raise InclusionRequestMissingError(community=self,<EOL>record=record)<EOL><DEDENT>req.delete()<EOL><DEDENT>
Reject a record for inclusion in the community.

        :param record: Record object.