Commit 04c78e18 by Brad Melin

fixed deprecation warnings for the Answer and Share models

parent b3ec504d
......@@ -35,6 +35,9 @@ class Answer(models.Model):
"""
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 = (
('student_id', 'course_id', 'name'),
('student_id', 'course_key', 'name'),
......@@ -69,4 +72,7 @@ class Share(models.Model):
notified = models.BooleanField(default=False, db_index=True)
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'),)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment