Add __str__ on Adhesion model

This commit is contained in:
Alexandre Iooss 2020-09-23 20:21:55 +02:00
parent 8d20b14cbb
commit 9a7304f573
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 3 additions and 0 deletions

View File

@ -69,3 +69,6 @@ class Adhesion(models.Model):
class Meta:
verbose_name = _('membership year')
verbose_name_plural = _('membership years')
def __str__(self):
return f"{self.starting_in} - {self.ending_in}"