소스 검색

Remove code and name attribues on AbstractWeightBased model

This doesn't work since this overrides existing model fields.
master
Pete Graham 9 년 전
부모
커밋
1eb50ee128
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0
    3
      src/oscar/apps/shipping/abstract_models.py

+ 0
- 3
src/oscar/apps/shipping/abstract_models.py 파일 보기

@@ -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`

Loading…
취소
저장