X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..64ad71354afe2d40af8d33a27778c7ec6ba632af:/src/chunks/models.py diff --git a/src/chunks/models.py b/src/chunks/models.py index fc03c1be0..7bca1e2dd 100644 --- a/src/chunks/models.py +++ b/src/chunks/models.py @@ -69,9 +69,13 @@ class MenuItem(models.Model): class Meta: ordering = ('order',) + @property + def is_separator(self): + return self.name == '-' + @property def final_name(self): - if self.name == '-': + if self.is_separator: return mark_safe('