def get_data(self, obj): return { 'title': unicode(obj), 'url': obj.get_absolute_url(), }
def get_title(self, obj): return unicode(obj)
def __unicode__(self): return unicode('%s related to %s ("%s")' % (self.parent, self.object, self.alias))
def __unicode__(self): return unicode(u'%s related to %s ("%s")' % (self.parent, self.object, self.alias))