示例#1
0
 def get_data(self, obj):
     return {
         'title': unicode(obj),
         'url': obj.get_absolute_url(),
     }
示例#2
0
 def get_title(self, obj):
     return unicode(obj)
示例#3
0
 def __unicode__(self):
     return unicode('%s related to %s ("%s")' % (self.parent, self.object, self.alias))
示例#4
0
 def __unicode__(self):
     return unicode(u'%s related to %s ("%s")' %
                    (self.parent, self.object, self.alias))
示例#5
0
 def get_data(self, obj):
     return {
         'title': unicode(obj),
         'url': obj.get_absolute_url(),
     }
示例#6
0
 def get_title(self, obj):
     return unicode(obj)