def __unicode__ self if self url page_title smart_unicode on http self

1
2
3
4
5
6
def __unicode__(self):
if self.url:
page_title = smart_unicode('%s "%s" on http://%s/%s/' % (self.content_type, self.content_object, self.site, self.url))
else:
page_title = smart_unicode('%s "%s" on http://%s/' % (self.content_type, self.content_object, self.site))
return page_title