Skip to content
Snippets Groups Projects
Commit 897bdf93 authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Added str method to model

parent ce2c2358
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ class InterludesParticipant(models.Model):
email = models.EmailField("email")
school = models.CharField("ENS de rattachement", choices=ENS.choices, max_length=1)
def __str__(self) -> str:
return "{} ({})".format(self.name, self.school)
class ActivityList(models.Model):
"""liste d'activités souhaitée de chaque participant,
avec un order de priorité"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment