Remove DAYS_GOOD_FOR from being a class variable.

LMS-1387
This commit is contained in:
Diana Huang
2013-10-31 11:12:16 -04:00
parent d939a61e93
commit 5389d6b7cf
2 changed files with 2 additions and 7 deletions

View File

@@ -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 #################################

View File

@@ -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