yf_yzl 2 лет назад
Родитель
Сommit
e52750e15b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/test/add_org_data.py

+ 1 - 1
scripts/test/add_org_data.py

@@ -40,7 +40,7 @@ with open(os.path.join(local_path, "scripts/test/sa_user_purview.json") , 'r', e
 with open(os.path.join(local_path, "scripts/test/sa_pest_bank.json") , 'r', encoding='utf-8') as f:
     sa_pest_bank = json.load(f)
     for row in sa_pest_bank.get("rows"):
-        pest_bank, is_created = UserPurview.objects.get_or_create(
+        pest_bank, is_created = MongoPestBank.objects.get_or_create(
             id=row.get("id"),
             defaults=row
         )