Browse Source

Make goods & costs editable/creatable from service page

Jocelyn Delande 9 years ago
parent
commit
e3b2d802cb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      costs/admin.py

+ 10 - 0
costs/admin.py

@@ -160,3 +160,13 @@ class ServiceAdmin(admin.ModelAdmin):
 
 
     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()['total_goods_value_share'])
+
+
+@admin.register(Good)
+class GoodAdmin(admin.ModelAdmin):
+    pass
+
+
+@admin.register(Cost)
+class CostAdmin(admin.ModelAdmin):
+    pass