Import parse_qs from cgi instead from urlparse for old python versions.

This commit is contained in:
Emanuel Schuetze 2011-09-12 08:32:05 +02:00
parent 1dc631d82d
commit c6fd0beae6

View File

@ -12,7 +12,10 @@
import csv
from urllib import urlencode
try:
from urlparse import parse_qs
except ImportError: # old python version, grab it from cgi
from cgi import parse_qs
from django.http import HttpResponse
from django.shortcuts import redirect