Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
5d564267
Commit
5d564267
authored
Jan 28, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new field to disable certificate download
parent
163400e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/djangoapps/student/models.py
+4
-3
No files found.
common/djangoapps/student/models.py
View file @
5d564267
...
@@ -90,6 +90,7 @@ class UserProfile(models.Model):
...
@@ -90,6 +90,7 @@ class UserProfile(models.Model):
)
)
mailing_address
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
mailing_address
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
goals
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
goals
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
allow_certificate
=
models
.
BooleanField
(
default
=
1
)
def
get_meta
(
self
):
def
get_meta
(
self
):
js_str
=
self
.
meta
js_str
=
self
.
meta
...
@@ -402,11 +403,11 @@ class TestCenterRegistration(models.Model):
...
@@ -402,11 +403,11 @@ class TestCenterRegistration(models.Model):
def
exam_authorization_count
(
self
):
def
exam_authorization_count
(
self
):
# TODO: figure out if this should really go in the database (with a default value).
# TODO: figure out if this should really go in the database (with a default value).
return
1
return
1
@property
@property
def
needs_uploading
(
self
):
def
needs_uploading
(
self
):
return
self
.
uploaded_at
is
None
or
self
.
uploaded_at
<
self
.
user_updated_at
return
self
.
uploaded_at
is
None
or
self
.
uploaded_at
<
self
.
user_updated_at
@classmethod
@classmethod
def
create
(
cls
,
testcenter_user
,
exam
,
accommodation_request
):
def
create
(
cls
,
testcenter_user
,
exam
,
accommodation_request
):
registration
=
cls
(
testcenter_user
=
testcenter_user
)
registration
=
cls
(
testcenter_user
=
testcenter_user
)
...
@@ -532,7 +533,7 @@ def get_testcenter_registration(user, course_id, exam_series_code):
...
@@ -532,7 +533,7 @@ def get_testcenter_registration(user, course_id, exam_series_code):
# nosetests thinks that anything with _test_ in the name is a test.
# nosetests thinks that anything with _test_ in the name is a test.
# Correct this (https://nose.readthedocs.org/en/latest/finding_tests.html)
# Correct this (https://nose.readthedocs.org/en/latest/finding_tests.html)
get_testcenter_registration
.
__test__
=
False
get_testcenter_registration
.
__test__
=
False
def
unique_id_for_user
(
user
):
def
unique_id_for_user
(
user
):
"""
"""
Return a unique id for a user, suitable for inserting into
Return a unique id for a user, suitable for inserting into
...
...
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