contest and contest_problems api.

add ordering for contest and submission models
This commit is contained in:
zemal
2017-07-17 21:28:06 +08:00
parent ee2f5f5dd7
commit 53d0cae8ea
13 changed files with 160 additions and 25 deletions

View File

@@ -42,6 +42,7 @@ class Submission(models.Model):
class Meta:
db_table = "submission"
ordering = ("-created_time",)
def __str__(self):
return self.id