Now searching for tag name which is a prefix of two or more tags doesn't result in...
[wolnelektury.git] / apps / catalogue / models.py
index 9640e7f..b658676 100644 (file)
@@ -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)