summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authoradityacp2016-09-30 17:55:40 +0530
committeradityacp2016-09-30 17:55:40 +0530
commit4a7762831ad7ae298f047e72e784630285219787 (patch)
treecb99df727a2ef49029d382114d0961817fc35f36 /yaksh/forms.py
parent513f5a52fec1945250d2fe7d48f1f4e3103cf3a1 (diff)
downloadonline_test-4a7762831ad7ae298f047e72e784630285219787.tar.gz
online_test-4a7762831ad7ae298f047e72e784630285219787.tar.bz2
online_test-4a7762831ad7ae298f047e72e784630285219787.zip
modified views, models, forms for django as per python 3
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 23131b7..a12ce9a 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -9,7 +9,11 @@ from taggit.managers import TaggableManager
from taggit.forms import TagField
from django.forms.models import inlineformset_factory
from django.db.models import Q
-from string import letters, punctuation, digits
+try:
+ from string import letters
+except ImportError:
+ from string import ascii_letters as letters
+from string import punctuation, digits
import datetime
import pytz