Просмотр исходного кода

Remove deprecated use of basket_charge_(in|ex)cl_tax in demo site

master
David Winterbottom 12 лет назад
Родитель
Сommit
0bd842e107

+ 2
- 2
sites/demo/apps/shipping/methods.py Просмотреть файл

@@ -32,7 +32,7 @@ class Standard(base.Base):
32 32
     @property
33 33
     def charge_excl_tax(self):
34 34
         # Assume no tax
35
-        return self.basket_charge_incl_tax()
35
+        return self.charge_incl_tax
36 36
 
37 37
 
38 38
 class Express(base.Base):
@@ -55,4 +55,4 @@ class Express(base.Base):
55 55
     @property
56 56
     def charge_excl_tax(self):
57 57
         # Assume no tax
58
-        return self.basket_charge_incl_tax()
58
+        return self.charge_incl_tax

+ 3
- 3
sites/demo/templates/basket/partials/basket_totals.html Просмотреть файл

@@ -80,7 +80,7 @@
80 80
                 <td>
81 81
                     {% trans "Shipping" %} - {{ shipping_method.name }}
82 82
                 </td>
83
-                <td class="align-right">{{ shipping_method.basket_charge_incl_tax|currency }}</td>
83
+                <td class="align-right">{{ shipping_method.charge_incl_tax|currency }}</td>
84 84
             </tr>
85 85
         {% else %}
86 86
             {# As shipping is discounted, we break it down into its original charge and a discount #}
@@ -90,7 +90,7 @@
90 90
             </tr>
91 91
             <tr>
92 92
                 <td>{% trans "Shipping total (before discounts)" %}</td>
93
-                <td class="align-right">{{ shipping_method.basket_charge_incl_tax_before_discount|currency }}</td>
93
+                <td class="align-right">{{ shipping_method.charge_incl_tax_before_discount|currency }}</td>
94 94
             </tr>
95 95
             <tr>
96 96
                 {% with discount=shipping_method.get_discount %}
@@ -102,7 +102,7 @@
102 102
                 <td>
103 103
                     {% trans "Shipping total (after discounts)" %}
104 104
                 </td>
105
-                <td class="align-right">{{ shipping_method.basket_charge_incl_tax|currency }}</td>
105
+                <td class="align-right">{{ shipping_method.charge_incl_tax|currency }}</td>
106 106
             </tr>
107 107
         {% endif %}
108 108
 

+ 1
- 1
sites/demo/templates/checkout/shipping_methods.html Просмотреть файл

@@ -34,7 +34,7 @@
34 34
                     {% endif %}
35 35
                 </div>
36 36
                 <div class="span1">
37
-                    {{ method.basket_charge_incl_tax|currency }}
37
+                    {{ method.charge_incl_tax|currency }}
38 38
                 </div>
39 39
                 <div class="span2">
40 40
                     <form method="post" action="{% url 'checkout:shipping-method' %}">

Загрузка…
Отмена
Сохранить