diff options
author | adityacp | 2016-04-15 11:40:25 +0530 |
---|---|---|
committer | adityacp | 2016-05-04 22:47:34 +0530 |
commit | d53feb82cdd74e25045171acf70e513729ba993c (patch) | |
tree | 70af917cb9909adea89367461ca8c6212b7440df /yaksh/models.py | |
parent | 8841e5ed4f8f79b7067ddb3523f4a3ec50f362b3 (diff) | |
download | online_test-d53feb82cdd74e25045171acf70e513729ba993c.tar.gz online_test-d53feb82cdd74e25045171acf70e513729ba993c.tar.bz2 online_test-d53feb82cdd74e25045171acf70e513729ba993c.zip |
rebase changes
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 561b334..c76d655 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -173,6 +173,9 @@ class Question(models.Model): # Tags for the Question. tags = TaggableManager(blank=True) + # user for particular question + user = models.ForeignKey(User, related_name="user") + def consolidate_answer_data(self, test_cases, user_answer): test_case_data_dict = [] question_info_dict = {} |