Пример #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)