Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pariksha
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roshan Rabinarayan
Pariksha
Commits
7eb030a1
Commit
7eb030a1
authored
Nov 07, 2020
by
Roshan Rabinarayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added all the quizes to professor page
parent
536ad3d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
quiz/__pycache__/views.cpython-38.pyc
quiz/__pycache__/views.cpython-38.pyc
+0
-0
quiz/views.py
quiz/views.py
+1
-1
No files found.
quiz/__pycache__/views.cpython-38.pyc
View file @
7eb030a1
No preview for this file type
quiz/views.py
View file @
7eb030a1
...
...
@@ -114,7 +114,7 @@ def student(request):
if
role
==
"S"
:
return
render
(
request
,
'student.html'
,{
'quizId'
:
quizId
})
else
:
quizzes
=
quiz
.
objects
.
all
()
.
filter
()
.
values
(
'quizId'
,
'quizCode'
,
'quizInstructor'
)
quizzes
=
quiz
.
objects
.
all
()
.
filter
(
quizInstructor
=
request
.
user
.
id
)
.
values
(
'quizId'
,
'quizCode'
,
'quizInstructor'
)
quizId
=
list
()
for
q
in
quizzes
:
quizId
.
append
((
q
[
'quizId'
],
q
[
'quizCode'
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment