diff -r 451be7b1de20 -r 404e9c1b8cff quiz/models.py --- a/quiz/models.py Thu Jul 01 16:55:22 2010 +0530 +++ b/quiz/models.py Thu Jul 01 17:05:57 2010 +0530 @@ -43,6 +43,18 @@ time_limit = models.PositiveSmallIntegerField() expected_ans = models.TextField() + def get_values(self): + + values_dict = {"quiz_num" : self.quiz_num, + "topic" : self.topic, + "description" : self.description, + "code" : self.code, + "options" : self.options, + "time_limit" : self.time_limit, + "expected_ans" : self.expected_ans, + } + return values_dict + def __unicode__(self): return self.description