Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
ded6dfbf
Commit
ded6dfbf
authored
Jul 10, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebased and resolved conflicts
parent
5540bdb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
edx_proctoring/serializers.py
+1
-7
edx_proctoring/static/proctoring/templates/course_allowances.underscore
+5
-0
No files found.
edx_proctoring/serializers.py
View file @
ded6dfbf
...
@@ -85,7 +85,7 @@ class ProctoredExamStudentAllowanceSerializer(serializers.ModelSerializer):
...
@@ -85,7 +85,7 @@ class ProctoredExamStudentAllowanceSerializer(serializers.ModelSerializer):
Serializer for the ProctoredExamStudentAllowance Model.
Serializer for the ProctoredExamStudentAllowance Model.
"""
"""
proctored_exam
=
ProctoredExamSerializer
()
proctored_exam
=
ProctoredExamSerializer
()
user
=
serializers
.
SerializerMethodField
(
'get_user'
)
user
=
UserSerializer
(
)
class
Meta
:
class
Meta
:
"""
"""
...
@@ -95,9 +95,3 @@ class ProctoredExamStudentAllowanceSerializer(serializers.ModelSerializer):
...
@@ -95,9 +95,3 @@ class ProctoredExamStudentAllowanceSerializer(serializers.ModelSerializer):
fields
=
(
fields
=
(
"id"
,
"created"
,
"modified"
,
"user"
,
"key"
,
"value"
,
"proctored_exam"
"id"
,
"created"
,
"modified"
,
"user"
,
"key"
,
"value"
,
"proctored_exam"
)
)
def
get_user
(
self
,
allowance_object
):
"""
returns the user object in a serialized form
"""
return
UserSerializer
(
User
.
objects
.
get
(
id
=
allowance_object
.
user_id
))
.
data
edx_proctoring/static/proctoring/templates/course_allowances.underscore
View file @
ded6dfbf
...
@@ -26,12 +26,17 @@
...
@@ -26,12 +26,17 @@
<td>
<td>
<%- interpolate(gettext(' %(exam_display_name)s '), { exam_display_name: proctored_exam_allowance.proctored_exam.exam_name }, true) %>
<%- interpolate(gettext(' %(exam_display_name)s '), { exam_display_name: proctored_exam_allowance.proctored_exam.exam_name }, true) %>
</td>
</td>
<% if (proctored_exam_allowance.user){ %>
<td>
<td>
<%- interpolate(gettext(' %(username)s '), { username: proctored_exam_allowance.user.username }, true) %>
<%- interpolate(gettext(' %(username)s '), { username: proctored_exam_allowance.user.username }, true) %>
</td>
</td>
<td>
<td>
<%- interpolate(gettext(' %(email)s '), { email: proctored_exam_allowance.user.email }, true) %>
<%- interpolate(gettext(' %(email)s '), { email: proctored_exam_allowance.user.email }, true) %>
</td>
</td>
<% }else{ %>
<td>N/A</td>
<td>N/A</td>
<% } %>
<td>
<td>
<%- interpolate(gettext(' %(allowance_name)s '), { allowance_name: proctored_exam_allowance.key }, true) %>
<%- interpolate(gettext(' %(allowance_name)s '), { allowance_name: proctored_exam_allowance.key }, true) %>
</td>
</td>
...
...
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