From 69351797483ac1b82534402ef1e4474f55b54249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Sat, 23 Sep 2017 16:34:37 +0200 Subject: [PATCH] Fix publication name for specials --- mainsite/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mainsite/models.py b/mainsite/models.py index af0fb85..809e224 100644 --- a/mainsite/models.py +++ b/mainsite/models.py @@ -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: