Kaynağa Gözat

all line attributes should be converted. (#3985)

master
Viggo de Vries 3 yıl önce
ebeveyn
işleme
13b34ea5d2
No account linked to committer's email address

+ 1
- 1
src/oscar/apps/basket/migrations/0010_convert_to_valid_json.py Dosyayı Görüntüle

@@ -8,7 +8,7 @@ from django.core.serializers.json import DjangoJSONEncoder
8 8
 
9 9
 def forward(apps, schema_editor):
10 10
     LineAttribute = apps.get_model("basket", "LineAttribute")
11
-    for at in LineAttribute.objects.filter(value__isnull=False):
11
+    for at in LineAttribute.objects.all():
12 12
         try:  # if the value is allready valid json, continue
13 13
             json.loads(at.value)
14 14
             continue

+ 1
- 1
src/oscar/apps/order/migrations/0012_convert_to_valid_json.py Dosyayı Görüntüle

@@ -8,7 +8,7 @@ from django.core.serializers.json import DjangoJSONEncoder
8 8
 
9 9
 def forward(apps, schema_editor):
10 10
     LineAttribute = apps.get_model("order", "LineAttribute")
11
-    for at in LineAttribute.objects.filter(value__isnull=False):
11
+    for at in LineAttribute.objects.all():
12 12
         try:  # if the value is allready valid json, continue
13 13
             json.loads(at.value)
14 14
             continue

Loading…
İptal
Kaydet