Skip to content

Commit 552f7e5

Browse files
committed
include session in default section __str_
makes things a bit clearer in the admin
1 parent a4468e2 commit 552f7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crowdsourcer/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Section(models.Model):
3232
marking_session = models.ForeignKey(MarkingSession, on_delete=models.CASCADE)
3333

3434
def __str__(self):
35-
return self.title
35+
return f"{self.title} ({self.marking_session.label})"
3636

3737

3838
class QuestionGroup(models.Model):

0 commit comments

Comments
 (0)