'Override this method to override the permission_required attribute.
Must return an iterable.'

def get_permission_required(self):

    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, str):
        perms = (self.permission_required,)
    else:
        perms = self.permission_required
    return perms
