Merge "Removing check for unsupported Django version"
This commit is contained in:
commit
8d008a73c4
|
@ -17,8 +17,8 @@ from csv import writer # noqa
|
|||
|
||||
|
||||
from django.http import HttpResponse # noqa
|
||||
from django.http import StreamingHttpResponse # noqa
|
||||
from django import template as django_template
|
||||
from django import VERSION # noqa
|
||||
import six
|
||||
|
||||
from six import StringIO
|
||||
|
@ -99,14 +99,9 @@ class BaseCsvResponse(CsvDataMixin, HttpResponse):
|
|||
return []
|
||||
|
||||
|
||||
if VERSION >= (1, 5, 0):
|
||||
class BaseCsvStreamingResponse(CsvDataMixin, StreamingHttpResponse):
|
||||
|
||||
from django.http import StreamingHttpResponse # noqa
|
||||
|
||||
class BaseCsvStreamingResponse(CsvDataMixin, StreamingHttpResponse):
|
||||
|
||||
"""Base CSV Streaming class. Provides streaming response for CSV data.
|
||||
"""
|
||||
"""Base CSV Streaming class. Provides streaming response for CSV data."""
|
||||
|
||||
def __init__(self, request, template, context, content_type, **kwargs):
|
||||
super(BaseCsvStreamingResponse, self).__init__()
|
||||
|
|
Loading…
Reference in New Issue