diff options
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 |