def create_from_record(self, record, **kwargs):
        for k in ('url', 'data'):
            if k not in kwargs:
                kwargs[k] = record.__dict__.get(k)
        kwargs.update({
            'logger': record.name,
            'level': record.levelno,
            'message': record.getMessage(),
        })
        if record.exc_info:
            return self.create_from_exception(*record.exc_info[1:2], **kwargs)

        return self._create(
            traceback=record.exc_text,
            **kwargs
        )
tests that an Org User with role viewer cannot delete a dataset
dataset/ETHPy150Open dcramer/django-db-log/djangodblog/manager.py/DBLogManager.create_from_record--crossover with--dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/tests/test_delete.py/DeleteViewTests.test_delete_dataset_viewer