summaryrefslogtreecommitdiff
path: root/website/models.py
diff options
context:
space:
mode:
authorSashi202018-10-03 12:11:09 +0530
committerSashi202018-10-03 12:11:09 +0530
commit4b069e08b7a56d2b57c128a326caf9eb97e47f7c (patch)
tree932c65d01781a02f37834f65bc7c702d6b9b3abd /website/models.py
parent808b9d8c687f873504cd1d6eec1888bb234dcffe (diff)
downloadnccps-2018-4b069e08b7a56d2b57c128a326caf9eb97e47f7c.tar.gz
nccps-2018-4b069e08b7a56d2b57c128a326caf9eb97e47f7c.tar.bz2
nccps-2018-4b069e08b7a56d2b57c128a326caf9eb97e47f7c.zip
Disabled unncessary urls
Diffstat (limited to 'website/models.py')
-rw-r--r--website/models.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/website/models.py b/website/models.py
index d550548..0a6e690 100644
--- a/website/models.py
+++ b/website/models.py
@@ -32,7 +32,7 @@ def get_document_dir(instance, filename):
fname, fext = os.path.splitext(filename)
# print "----------------->",instance.user
return '%s/attachment/%s/%s.%s' % (instance.user, instance.proposal_type, fname+'_'+str(instance.user), fext)
-
+
class Proposal(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE,)
@@ -98,4 +98,14 @@ class Profile(models.Model):
self.user.first_name,
self.user.last_name,
self.user.email
- ) \ No newline at end of file
+ )
+
+"""class Question(models.Model):
+ Question for a quiz.
+
+ question = models.CharField(max_length=100)
+ option_1 = models.CharField(max_length=100)
+ option_2 = models.CharField(max_length=100)
+ option_3 = models.CharField(max_length=100)
+ option_4 = models.CharField(max_length=100)
+ correct_answer = models.CharField(max_length=100) """ \ No newline at end of file