diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 2e62827..12d2a28 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -188,6 +188,8 @@ class AdoptionNotice(models.Model): @property def description_short(self): + if self.description is None: + return "" if len(self.description) > 200: return self.description[:200] + f" ... [weiterlesen]({self.get_absolute_url()})"