summaryrefslogtreecommitdiff
path: root/testapp/exam/forms.py
diff options
context:
space:
mode:
authorprathamesh2014-05-12 15:13:33 +0530
committerprathamesh2014-05-12 15:13:33 +0530
commitfa1cdf5c8f92715f2b3866f0a17e2439d27557c5 (patch)
treec0020a1bbcc24d7ef7372e4ae53133dfc4b28523 /testapp/exam/forms.py
parent3244b69143adb3f86ca2bbdfbbc1b8a93489de29 (diff)
downloadonline_test-fa1cdf5c8f92715f2b3866f0a17e2439d27557c5.tar.gz
online_test-fa1cdf5c8f92715f2b3866f0a17e2439d27557c5.tar.bz2
online_test-fa1cdf5c8f92715f2b3866f0a17e2439d27557c5.zip
Files modified according to the pep8 coding standard.
Diffstat (limited to 'testapp/exam/forms.py')
-rw-r--r--testapp/exam/forms.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py
index 917bea7..d711f6a 100644
--- a/testapp/exam/forms.py
+++ b/testapp/exam/forms.py
@@ -13,12 +13,12 @@ from string import letters, punctuation, digits
import datetime
QUESTION_TYPE_CHOICES = (
- ("python", "Python"),
- ("bash", "Bash"),
- ("mcq", "MCQ"),
- ("C", "C Language"),
- ("C++", "C++ Language"),
- ("java", "Java Language"),
+ ("python", "Python"),
+ ("bash", "Bash"),
+ ("mcq", "MCQ"),
+ ("C", "C Language"),
+ ("C++", "C++ Language"),
+ ("java", "Java Language"),
)
UNAME_CHARS = letters + "._" + digits
@@ -30,8 +30,7 @@ class UserRegisterForm(forms.Form):
It has the various fields and functions required to register
a new user to the system"""
- username = forms.CharField\
- (max_length=30, help_text='Letters, digits,\
+ username = forms.CharField(max_length=30, help_text='Letters, digits,\
period and underscores only.')
email = forms.EmailField()
password = forms.CharField(max_length=30, widget=forms.PasswordInput())