(cls, **initkwargs)
return view
Creates a simple domain-specific class-based view for passing through ES requests.
Creates a simple domain-specific class-based view for passing through ES requests.
Creates a simple domain - specific class - based view for passing through ES requests .
def as_domain_specific_view(cls, **initkwargs):
        """
        Creates a simple domain-specific class-based view for passing through ES requests.
        """
        def view(request, domain, *args, **kwargs):
            self = cls(domain)
            return self.dispatch(request, domain, *args, **kwargs)

        return view
def as_domain_specific_view ( cls , * * initkwargs ) : def view ( request , domain , * args , * * kwargs ) : self = cls ( domain ) return self . dispatch ( request , domain , * args , * * kwargs ) return view