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
5389d6b7
Commit
5389d6b7
authored
Oct 31, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove DAYS_GOOD_FOR from being a class variable.
LMS-1387
parent
d939a61e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
cms/envs/common.py
+0
-4
lms/djangoapps/verify_student/models.py
+2
-3
No files found.
cms/envs/common.py
View file @
5389d6b7
...
...
@@ -418,10 +418,6 @@ MKTG_URL_LINK_MAP = {
COURSES_WITH_UNSAFE_CODE
=
[]
################# Student Verification #################
VERIFY_STUDENT
=
{
"DAYS_GOOD_FOR"
:
365
,
# How many days is a verficiation good for?
}
############################## EVENT TRACKING #################################
...
...
lms/djangoapps/verify_student/models.py
View file @
5389d6b7
...
...
@@ -115,8 +115,6 @@ class PhotoVerification(StatusModel):
attempt.status == "created"
pending_requests = PhotoVerification.submitted.all()
"""
# We can make this configurable later...
DAYS_GOOD_FOR
=
settings
.
VERIFY_STUDENT
[
"DAYS_GOOD_FOR"
]
######################## Fields Set During Creation ########################
# See class docstring for description of status states
...
...
@@ -181,8 +179,9 @@ class PhotoVerification(StatusModel):
Returns the earliest allowed date given the settings
"""
DAYS_GOOD_FOR
=
settings
.
VERIFY_STUDENT
[
"DAYS_GOOD_FOR"
]
allowed_date
=
(
datetime
.
now
(
pytz
.
UTC
)
-
timedelta
(
days
=
cls
.
DAYS_GOOD_FOR
)
datetime
.
now
(
pytz
.
UTC
)
-
timedelta
(
days
=
DAYS_GOOD_FOR
)
)
return
allowed_date
...
...
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