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
4af5d45d
Commit
4af5d45d
authored
Mar 03, 2017
by
AsadAzam
Committed by
GitHub
Mar 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14603 from edx/asadazam/ecom-7252-refund-cutoff-log
added log for refund cutoff date
parents
090f4e41
3102b2dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
common/djangoapps/student/models.py
+5
-0
No files found.
common/djangoapps/student/models.py
View file @
4af5d45d
...
@@ -1571,6 +1571,11 @@ class CourseEnrollment(models.Model):
...
@@ -1571,6 +1571,11 @@ class CourseEnrollment(models.Model):
# If it is after the refundable cutoff date they should not be refunded.
# If it is after the refundable cutoff date they should not be refunded.
refund_cutoff_date
=
self
.
refund_cutoff_date
()
refund_cutoff_date
=
self
.
refund_cutoff_date
()
if
refund_cutoff_date
and
datetime
.
now
(
UTC
)
>
refund_cutoff_date
:
if
refund_cutoff_date
and
datetime
.
now
(
UTC
)
>
refund_cutoff_date
:
log
.
info
(
u"user [
%
s] cannot be refunded because his/her cutoff date [
%
s] has passed"
,
self
.
username
,
refund_cutoff_date
)
return
False
return
False
course_mode
=
CourseMode
.
mode_for_course
(
self
.
course_id
,
'verified'
)
course_mode
=
CourseMode
.
mode_for_course
(
self
.
course_id
,
'verified'
)
...
...
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