Browse Source

Fix cost for new subscriber in admin

Jocelyn Delande 9 years ago
parent
commit
72bf8f2adf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      costs/admin.py

+ 1 - 1
costs/admin.py

@@ -35,7 +35,7 @@ class ServiceInline(admin.TabularInline):
     monthly_unit_cost.short_description = "Coût de revient mensuel"
     monthly_unit_cost.short_description = "Coût de revient mensuel"
 
 
     def new_subscriber_cost(self, obj):
     def new_subscriber_cost(self, obj):
-        return '{:.2f}€'.format(obj.get_prices()['total_goods_value_share'])
+        return '{:.2f}€'.format(obj.get_prices()['unit_goods_value_share'])
     new_subscriber_cost.short_description = "Coût nouv. abo"
     new_subscriber_cost.short_description = "Coût nouv. abo"