X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..964ae898cf704f7fe732b0ec4a20a83b3604b220:/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('