Browse Source

name() doesn't exists, use __unicode__ instead

Alexandre Aubin 7 years ago
parent
commit
627f206eb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coin/billing/admin.py

+ 1 - 1
coin/billing/admin.py

@@ -189,7 +189,7 @@ class InvoiceAdmin(admin.ModelAdmin):
 
 class PaymentAdmin(admin.ModelAdmin):
 
-    list_display = ('name', 'member', 'payment_mean', 'amount', 'date',
+    list_display = ('__unicode__', 'member', 'payment_mean', 'amount', 'date',
                     'invoice', 'amount_already_allocated', 'label')
     list_display_links = ()
     fields = (('member'),