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
ff8b6be8
Commit
ff8b6be8
authored
Apr 17, 2015
by
Awais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-1439 adding new model and migration.
parent
0b5d0b29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
lms/djangoapps/verify_student/migrations/0005_auto__add_incoursereverificationconfiguration.py
+1
-2
lms/djangoapps/verify_student/migrations/0006_auto__add_skippedreverification__add_unique_skippedreverification_user.py
+0
-0
lms/djangoapps/verify_student/models.py
+16
-0
No files found.
lms/djangoapps/verify_student/migrations/0005_auto__add_incoursereverificationconfiguration.py
View file @
ff8b6be8
...
@@ -97,7 +97,7 @@ class Migration(SchemaMigration):
...
@@ -97,7 +97,7 @@ class Migration(SchemaMigration):
},
},
'verify_student.verificationcheckpoint'
:
{
'verify_student.verificationcheckpoint'
:
{
'Meta'
:
{
'unique_together'
:
"(('course_id', 'checkpoint_name'),)"
,
'object_name'
:
'VerificationCheckpoint'
},
'Meta'
:
{
'unique_together'
:
"(('course_id', 'checkpoint_name'),)"
,
'object_name'
:
'VerificationCheckpoint'
},
'checkpoint_name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'
unique'
:
'True'
,
'
max_length'
:
'32'
}),
'checkpoint_name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'32'
}),
'course_id'
:
(
'xmodule_django.models.CourseKeyField'
,
[],
{
'max_length'
:
'255'
,
'db_index'
:
'True'
}),
'course_id'
:
(
'xmodule_django.models.CourseKeyField'
,
[],
{
'max_length'
:
'255'
,
'db_index'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'photo_verification'
:
(
'django.db.models.fields.related.ManyToManyField'
,
[],
{
'to'
:
"orm['verify_student.SoftwareSecurePhotoVerification']"
,
'symmetrical'
:
'False'
})
'photo_verification'
:
(
'django.db.models.fields.related.ManyToManyField'
,
[],
{
'to'
:
"orm['verify_student.SoftwareSecurePhotoVerification']"
,
'symmetrical'
:
'False'
})
...
@@ -115,4 +115,3 @@ class Migration(SchemaMigration):
...
@@ -115,4 +115,3 @@ class Migration(SchemaMigration):
}
}
complete_apps
=
[
'verify_student'
]
complete_apps
=
[
'verify_student'
]
lms/djangoapps/verify_student/migrations/0006_auto__add_skippedreverification__add_unique_skippedreverification_user.py
0 → 100644
View file @
ff8b6be8
This diff is collapsed.
Click to expand it.
lms/djangoapps/verify_student/models.py
View file @
ff8b6be8
...
@@ -1061,3 +1061,19 @@ class InCourseReverificationConfiguration(ConfigurationModel):
...
@@ -1061,3 +1061,19 @@ class InCourseReverificationConfiguration(ConfigurationModel):
"""
"""
pass
pass
class
SkippedReverification
(
models
.
Model
):
"""
Model for tracking skipped Reverification of a user against a specific
course.
If user skipped the Reverification for a specific course then in future
user cannot see the reverification link.
"""
user
=
models
.
ForeignKey
(
User
)
course_id
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
)
checkpoint
=
models
.
ForeignKey
(
VerificationCheckpoint
,
related_name
=
"skipped_checkpoint"
)
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
class
Meta
:
# pylint: disable=missing-docstring, old-style-class
unique_together
=
((
'user'
,
'course_id'
),)
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