From cc57454617b6b478c74a1b982be21c188255dda5 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 22 May 2024 11:04:26 +0100 Subject: [PATCH] include session in default section __str_ makes things a bit clearer in the admin --- crowdsourcer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdsourcer/models.py b/crowdsourcer/models.py index b00ceecc..cf9d8eea 100644 --- a/crowdsourcer/models.py +++ b/crowdsourcer/models.py @@ -32,7 +32,7 @@ class Section(models.Model): marking_session = models.ForeignKey(MarkingSession, on_delete=models.CASCADE) def __str__(self): - return self.title + return f"{self.title} ({self.marking_session.label})" class QuestionGroup(models.Model):