Fix publication name for specials
This commit is contained in:
parent
f0282eb9da
commit
6935179748
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue