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
a08ab9ff
Commit
a08ab9ff
authored
Aug 16, 2014
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: an individual extended due date must not precede the normal due date LMS-6563
parent
42eaa4b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
lms/djangoapps/instructor/views/tools.py
+9
-1
No files found.
lms/djangoapps/instructor/views/tools.py
View file @
a08ab9ff
...
...
@@ -161,8 +161,16 @@ def title_or_url(node):
def
set_due_date_extension
(
course
,
unit
,
student
,
due_date
):
"""
Sets a due date extension.
Sets a due date extension. Raises DashboardError if the extended
due date is invalid.
"""
if
due_date
:
# Check that the new due date is valid:
original_due_date
=
getattr
(
unit
,
'due'
,
None
)
if
due_date
<
original_due_date
:
raise
DashboardError
(
_
(
"An extended due date must be later than the original due date."
))
def
set_due_date
(
node
):
"""
Recursively set the due date on a node and all of its children.
...
...
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