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
78896c60
Commit
78896c60
authored
Nov 24, 2015
by
Bill DeRusha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial migrations for verified deadlines for self paced
parent
a0668568
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
common/djangoapps/course_modes/migrations/0002_coursemode_expiration_datetime_is_explicit.py
+19
-0
common/djangoapps/course_modes/models.py
+5
-0
lms/djangoapps/verify_student/migrations/0002_auto_20151124_1024.py
+24
-0
lms/djangoapps/verify_student/models.py
+5
-0
No files found.
common/djangoapps/course_modes/migrations/0002_coursemode_expiration_datetime_is_explicit.py
0 → 100644
View file @
78896c60
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'course_modes'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'coursemode'
,
name
=
'expiration_datetime_is_explicit'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
]
common/djangoapps/course_modes/models.py
View file @
78896c60
...
...
@@ -63,6 +63,11 @@ class CourseMode(models.Model):
),
)
# The system prefers to set this automatically based on default settings. But
# if the field is set manually we want a way to indicate that so we don't
# overwrite the manual setting of the field.
expiration_datetime_is_explicit
=
models
.
BooleanField
(
default
=
True
)
# DEPRECATED: the `expiration_date` field has been replaced by `expiration_datetime`
expiration_date
=
models
.
DateField
(
default
=
None
,
null
=
True
,
blank
=
True
)
...
...
lms/djangoapps/verify_student/migrations/0002_auto_20151124_1024.py
0 → 100644
View file @
78896c60
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'verify_student'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'historicalverificationdeadline'
,
name
=
'deadline_is_explicit'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
migrations
.
AddField
(
model_name
=
'verificationdeadline'
,
name
=
'deadline_is_explicit'
,
field
=
models
.
BooleanField
(
default
=
True
),
),
]
lms/djangoapps/verify_student/models.py
View file @
78896c60
...
...
@@ -955,6 +955,11 @@ class VerificationDeadline(TimeStampedModel):
)
)
# The system prefers to set this automatically based on default settings. But
# if the field is set manually we want a way to indicate that so we don't
# overwrite the manual setting of the field.
deadline_is_explicit
=
models
.
BooleanField
(
default
=
True
)
# Maintain a history of changes to deadlines for auditing purposes
history
=
HistoricalRecords
()
...
...
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