]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
Give better info for article path
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 16 Aug 2009 14:15:45 +0000 (15:15 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 16 Aug 2009 14:15:45 +0000 (15:15 +0100)
sommitrealweird/bpcms/models.py

index 6df678162223fa770634c60f74f45684139e5032..f3d9b8ae492a7da57e29cd387a7e2ed74616e3ee 100644 (file)
@@ -20,7 +20,7 @@ class Document(models.Model):
         return self.__unicode__()
 
     def __unicode__(self):
         return self.__unicode__()
 
     def __unicode__(self):
-        return u'%s (%s)' %(self.title, self.slug)
+        return u'%s - %s' %(self.get_basic_url(), self.title)
 
     def save(self):
         super(Document, self).save()
 
     def save(self):
         super(Document, self).save()