summaryrefslogtreecommitdiff
path: root/website/forms.py
diff options
context:
space:
mode:
authorSashi202018-10-03 12:11:47 +0530
committerGitHub2018-10-03 12:11:47 +0530
commit51d4feffd7f8210b0b865c279d76b1aa216649b9 (patch)
tree932c65d01781a02f37834f65bc7c702d6b9b3abd /website/forms.py
parent806ce24ff78a82810cb54c04070a902e3b9df1b2 (diff)
parent4b069e08b7a56d2b57c128a326caf9eb97e47f7c (diff)
downloadnccps-2018-51d4feffd7f8210b0b865c279d76b1aa216649b9.tar.gz
nccps-2018-51d4feffd7f8210b0b865c279d76b1aa216649b9.tar.bz2
nccps-2018-51d4feffd7f8210b0b865c279d76b1aa216649b9.zip
Merge pull request #20 from Sashi20/master
Disabled unncessary urls
Diffstat (limited to 'website/forms.py')
-rwxr-xr-xwebsite/forms.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/website/forms.py b/website/forms.py
index 5631d46..d833979 100755
--- a/website/forms.py
+++ b/website/forms.py
@@ -376,4 +376,12 @@ class UserRegistrationForm(forms.Form):
timezone.timedelta(days=1)
new_profile.save()
key = Profile.objects.get(user=new_user).activation_key
- return u_name, pwd, key \ No newline at end of file
+ return u_name, pwd, key
+
+#class QuestionForm(forms.ModelForm):
+ """Creates a form to add or edit a Question.
+ It has the related fields and functions required."""
+
+""" class Meta:
+ model = Question
+ exclude = ['user', 'active'] """ \ No newline at end of file