diff options
author | FOSSEE Git User | 2018-10-03 19:32:19 +0530 |
---|---|---|
committer | FOSSEE Git User | 2018-10-03 19:32:19 +0530 |
commit | 5745dfa4ebc5625f44ac237c2dee40d1f6b7af3a (patch) | |
tree | 932c65d01781a02f37834f65bc7c702d6b9b3abd /website/models.py | |
parent | 7bc18d752c842ed4d4f2f70ccb166f84f80cfb06 (diff) | |
parent | 51d4feffd7f8210b0b865c279d76b1aa216649b9 (diff) | |
download | nccps-2018-5745dfa4ebc5625f44ac237c2dee40d1f6b7af3a.tar.gz nccps-2018-5745dfa4ebc5625f44ac237c2dee40d1f6b7af3a.tar.bz2 nccps-2018-5745dfa4ebc5625f44ac237c2dee40d1f6b7af3a.zip |
Merge branch 'master' of https://github.com/FOSSEE/nccps-2018
Diffstat (limited to 'website/models.py')
-rw-r--r-- | website/models.py | 14 |
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 |