Пример #1
0
 def _as_row(self, obj):
     return [
         (get_field_display(obj, name)[1],
          self.resolve_url(base.DETAIL, args=(obj.id,))
          if i == 0 else None)
         for i, name in enumerate(self.list_field_names)]