Bläddra i källkod

Remove code and name attribues on AbstractWeightBased model

This doesn't work since this overrides existing model fields.
master
Pete Graham 9 år sedan
förälder
incheckning
1eb50ee128
1 ändrade filer med 0 tillägg och 3 borttagningar
  1. 0
    3
      src/oscar/apps/shipping/abstract_models.py

+ 0
- 3
src/oscar/apps/shipping/abstract_models.py Visa fil

@@ -100,9 +100,6 @@ class AbstractWeightBased(AbstractBase):
100 100
     # The attribute code to use to look up the weight of a product
101 101
     weight_attribute = 'weight'
102 102
 
103
-    code = 'weight-based-shipping'
104
-    name = _('Weight-based shipping')
105
-
106 103
     # The default weight to use (in kg) when a product doesn't have a weight
107 104
     # attribute.
108 105
     # Validation isn't trigging in `test_doesnt_allow_negative_default_weights`

Laddar…
Avbryt
Spara