def create_view(self, es_filter_fields):
    'Create and return test view class instance\n\n        Args:\n            es_filter_fields ([ESFieldFilter]): filtering fields\n        Returns:\n            ElasticAPIView: test view instance\n        '
    view = ElasticAPIView()
    view.es_model = DataDocType
    view.es_filter_fields = es_filter_fields
    return view
Create and return test view class instance

Args:
    es_filter_fields ([ESFieldFilter]): filtering fields
Returns:
    ElasticAPIView: test view instance
def create_view(self, es_filter_fields):
    'Create and return test view class instance\n\n        Args:\n            es_filter_fields ([ESFieldFilter]): filtering fields\n        Returns:\n            ElasticAPIView: test view instance\n        '
    view = ElasticAPIView()
    view.es_model = DataDocType
    view.es_filter_fields = es_filter_fields
    return view