From c6fd0beae6878f6382219565e2d2874f4e45a9eb Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 12 Sep 2011 08:32:05 +0200 Subject: [PATCH] Import parse_qs from cgi instead from urlparse for old python versions. --- openslides/participant/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 7d620cae7..894366f26 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -12,7 +12,10 @@ import csv from urllib import urlencode -from urlparse import parse_qs +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