diff options
author | adityacp | 2016-04-15 11:46:27 +0530 |
---|---|---|
committer | adityacp | 2016-05-04 22:47:34 +0530 |
commit | 7a4438b7572f828c88958c12b2cd9666784f1bb5 (patch) | |
tree | 27af06249d4a4630a9a0f9bd1ed250ee5bc1ce90 /yaksh/forms.py | |
parent | d53feb82cdd74e25045171acf70e513729ba993c (diff) | |
download | online_test-7a4438b7572f828c88958c12b2cd9666784f1bb5.tar.gz online_test-7a4438b7572f828c88958c12b2cd9666784f1bb5.tar.bz2 online_test-7a4438b7572f828c88958c12b2cd9666784f1bb5.zip |
further rebase changes
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 37741b9..c5bec4c 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -167,7 +167,7 @@ class QuestionFilterForm(forms.Form): def __init__(self, *args, **kwargs): user = kwargs.pop("user") super(QuestionFilterForm, self).__init__(*args, **kwargs) - questions = Question.objects.filter(user_id=user) + questions = Question.objects.filter(user_id=user.id) points_list = questions.values_list('points', flat=True).distinct() points_options = [('select', 'Select Marks')] points_options.extend([(point, point) for point in points_list]) |