]> git.sommitrealweird.co.uk Git - sommitrealweird.git/commitdiff
Slightly better display of documents in admin
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 3 Mar 2010 09:17:47 +0000 (09:17 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Wed, 3 Mar 2010 09:17:47 +0000 (09:17 +0000)
sommitrealweird/bpcms/models.py

index f28fedefd647edd1eab874a8359d8d30929e60b4..0cb821bdfdd80a2b55054cc76b7a22727f6a424e 100644 (file)
@@ -36,7 +36,7 @@ class Document(models.Model):
         return self.__unicode__()
 
     def __unicode__(self):
         return self.__unicode__()
 
     def __unicode__(self):
-        return u'%s (%s)' %(self.title, self.get_folder_path())
+        return u'%s - %s' %(self.get_basic_url(), self.title)
 
     def save(self):
         super(Document, self).save()
 
     def save(self):
         super(Document, self).save()