From 4a7762831ad7ae298f047e72e784630285219787 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 30 Sep 2016 17:55:40 +0530 Subject: modified views, models, forms for django as per python 3 --- yaksh/forms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'yaksh/forms.py') 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 -- cgit