Skip to content

Commit

Permalink
include session in default section __str_
Browse files Browse the repository at this point in the history
makes things a bit clearer in the admin
  • Loading branch information
struan committed May 22, 2024
1 parent 16e37e6 commit cc57454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crowdsourcer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cc57454

Please sign in to comment.