Fix publication name for specials

This commit is contained in:
Théophile Bastian 2017-09-23 16:34:37 +02:00
parent f0282eb9da
commit 6935179748

View file

@ -48,6 +48,8 @@ class Publication(models.Model):
def __str__(self):
if self.custom_name:
return self.custom_name
elif self.is_special:
return self.num
return 'BOcal n°{}'.format(self.num)
class Meta: