Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
04c78e18
Commit
04c78e18
authored
Aug 04, 2017
by
Brad Melin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed deprecation warnings for the Answer and Share models
parent
b3ec504d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
problem_builder/models.py
+6
-0
No files found.
problem_builder/models.py
View file @
04c78e18
...
@@ -35,6 +35,9 @@ class Answer(models.Model):
...
@@ -35,6 +35,9 @@ class Answer(models.Model):
"""
"""
class
Meta
:
class
Meta
:
# Since problem_builder isn't added to INSTALLED_APPS until it's imported,
# specify the app_label here.
app_label
=
'problem_builder'
unique_together
=
(
unique_together
=
(
(
'student_id'
,
'course_id'
,
'name'
),
(
'student_id'
,
'course_id'
,
'name'
),
(
'student_id'
,
'course_key'
,
'name'
),
(
'student_id'
,
'course_key'
,
'name'
),
...
@@ -69,4 +72,7 @@ class Share(models.Model):
...
@@ -69,4 +72,7 @@ class Share(models.Model):
notified
=
models
.
BooleanField
(
default
=
False
,
db_index
=
True
)
notified
=
models
.
BooleanField
(
default
=
False
,
db_index
=
True
)
class
Meta
(
object
):
class
Meta
(
object
):
# Since problem_builder isn't added to INSTALLED_APPS until it's imported,
# specify the app_label here.
app_label
=
'problem_builder'
unique_together
=
((
'shared_by'
,
'shared_with'
,
'block_id'
),)
unique_together
=
((
'shared_by'
,
'shared_with'
,
'block_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