

def get_permission_required(self):
    '\n            Override this method to override the permission_required attribute.\n            Must return an iterable.\n            '
    if (self.permission_required is None):
        raise ImproperlyConfigured('{0} is missing the permission_required attribute. Define {0}.permission_required, or override {0}.get_permission_required().'.format(self.__class__.__name__))
    if isinstance(self.permission_required, six.string_types):
        perms = (self.permission_required,)
    else:
        perms = self.permission_required
    return perms

dataset/ETHPy150Open pinax/pinax-likes/pinax/likes/compat.py PermissionRequiredMixin.get_permission_required/original