1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-25 17:42:25 +00:00

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

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}"