X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/929f89d521e88b6c3657d3d98f731beca52c6357..11099f8a5d8ffd220d1ee94eaadff8ff5be826e3:/apps/catalogue/models.py diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 9640e7fd2..b6586763b 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -97,6 +97,10 @@ class Book(models.Model): tagged = managers.ModelTaggedItemManager(Tag) tags = managers.TagDescriptor(Tag) + @property + def name(self): + return self.title + def short_html(self): if len(self._short_html): return mark_safe(self._short_html)