Removing check for unsupported Django version

Horizon no longer supports Django 1.5 and less, so this logic is
unnecessary.

Closes-Bug: #1502206
Change-Id: I7b892760e23f697c6af0ae005f56e9566beb069e
This commit is contained in:
David Lyle 2015-10-02 09:32:31 -06:00
parent dc9a456996
commit 19468fcc21
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__()