Commit 50e621d2 by muhammad-ammar Committed by Ned Batchelder

Remove RemovedInDjango19Warning warnings

parent 589d2cf3
......@@ -33,7 +33,7 @@ def load_requirements(*requirements_paths):
setup(
name='edx-submissions',
version='0.1.0',
version='0.1.1',
author='edX',
description='An API for creating submissions and scores.',
url='http://github.com/edx/edx-submissions.git',
......
......@@ -65,6 +65,7 @@ class StudentItem(models.Model):
return u"({0.student_id}, {0.course_id}, {0.item_type}, {0.item_id})".format(self)
class Meta:
app_label = "submissions"
unique_together = (
# For integrity reasons, and looking up all of a student's items
("course_id", "student_id", "item_id"),
......@@ -120,6 +121,7 @@ class Submission(models.Model):
return u"Submission {}".format(self.uuid)
class Meta:
app_label = "submissions"
ordering = ["-submitted_at", "-id"]
......@@ -140,6 +142,9 @@ class Score(models.Model):
# Flag to indicate that this score should reset the current "highest" score
reset = models.BooleanField(default=False)
class Meta:
app_label = "submissions"
@property
def submission_uuid(self):
"""
......@@ -233,6 +238,7 @@ class ScoreSummary(models.Model):
latest = models.ForeignKey(Score, related_name="+")
class Meta:
app_label = "submissions"
verbose_name_plural = "Score Summaries"
@receiver(post_save, sender=Score)
......
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