code: def accept_record(self, record):
          
          with db.session.begin_nested():
              req = InclusionRequest.get(self.id, record.id)
              if req is None:
                  raise InclusionRequestMissingError(community=self,
                                                     record=record)
              req.delete()
              self.add_record(record)
              self.last_record_accepted = datetime.utcnow()
docs: Accept a record for inclusion in the community.
  
          :param record: Record object.