diff --git a/cms/envs/common.py b/cms/envs/common.py index cd3c11cfaf5977ffeb48c401475fb7b279c7f4d8..f225e2206182028baf99a21329d129a1cc7ec4da 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -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 ################################# diff --git a/lms/djangoapps/verify_student/models.py b/lms/djangoapps/verify_student/models.py index 156cfb3ece459829e3462f4fda74570c479cb7cc..6acfe0e889e84145319dcebb8c6ba4396997222f 100644 --- a/lms/djangoapps/verify_student/models.py +++ b/lms/djangoapps/verify_student/models.py @@ -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