Add contest field to manage submission page
This commit is contained in:
parent
038aa8674a
commit
e1054077fa
6 changed files with 96 additions and 70 deletions
|
@ -467,7 +467,7 @@ class Contest(models.Model, PageVotable, Bookmarkable):
|
|||
)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
return f"{self.name} ({self.key})"
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse("contest_view", args=(self.key,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue