You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
send_info_mail(f"Problem migrating Address.country to code", f"Could not normalize country code '{address.country}' for Address {address.pk} (setting to empty)")
18
+
send_info_mail(
19
+
"Problem migrating Address.country to code",
20
+
f"Could not normalize country code '{address.country}' for Address {address.pk} (setting to empty)",
21
+
)
20
22
code=""
21
23
address.country=code
22
24
address.save(update_fields=["country"])
23
25
Building=apps.get_model("geno", "Building")
24
26
forbuildinginBuilding.objects.all():
25
27
code=normalize_country_code(building.country)
26
28
ifcodeisNone:
27
-
send_info_mail(f"Problem migrating Building.country to code", f"Could not normalize country code '{building.country}' for Building {building.pk} (setting to empty)")
29
+
send_info_mail(
30
+
"Problem migrating Building.country to code",
31
+
f"Could not normalize country code '{building.country}' for Building {building.pk} (setting to empty)",
0 commit comments