def get_permission_required(self):
            """
            Override this method to override the permission_required attribute.
            Must return an iterable.
            """
            if self.permission_required == 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/operator `is` -> `==`