summaryrefslogtreecommitdiff
path: root/yaksh/tests.py
diff options
context:
space:
mode:
authorprathamesh2016-04-11 18:20:29 +0530
committerprathamesh2016-04-11 18:36:47 +0530
commit523390f284b93e10af35058931b06eed1550700c (patch)
tree06d3cd76a3f38b4ceb8ba7e93d64db12ba9f5b7f /yaksh/tests.py
parent2dfef7f76cb04b34901650dc9ae0f41ef394d6ba (diff)
downloadonline_test-523390f284b93e10af35058931b06eed1550700c.tar.gz
online_test-523390f284b93e10af35058931b06eed1550700c.tar.bz2
online_test-523390f284b93e10af35058931b06eed1550700c.zip
Migration from django 1.6 to django 1.9
- upgraded django-taggit to 0.18 from 0.12.2 - added fields attribute in django forms, mandatory in django 1.9 - get_profile attribute of User object deprecated, used hasattr instead. - Template settings changed in django 1.9, all template related settings at one place. - Support for string view arguments to url() is deprecated, so passed callable views instead. - django.conf.urls.patterns() is deprecated, updated urlpatterns to a list of django.conf.urls.url() instances instead. - django.utils.unittest is deprecated, used unittest instead. - made changes in requirements and setup files other - added quiz prerequisite required as false in forms, so that the quiz is added without any prerequisite. - Time zone settings not implemented.
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r--yaksh/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py
index d8e108a..d6d1d91 100644
--- a/yaksh/tests.py
+++ b/yaksh/tests.py
@@ -1,4 +1,4 @@
-from django.utils import unittest
+import unittest
from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\
QuestionSet, AnswerPaper, Answer, TestCase, Course
import json