Merge "Removing check for unsupported Django version"

This commit is contained in:
Jenkins 2015-10-04 10:40:12 +00:00 committed by Gerrit Code Review
commit 8d008a73c4
1 changed files with 30 additions and 35 deletions

View File

@ -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__()