def _message(self, level, message):
        assert level in ('success', 'warning', 'info', 'error')
        if self.request and self.send_messages:
            getattr(messages, level)(self.request, message)
dataset/ETHPy150Open lukaszb/django-projector/projector/forms.py/ProjectTeamPermissionsForm._message/original