From 36fcb4a6ba47ad12940d200e4aed8655f58a697a Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Thu, 9 Jan 2025 20:25:15 +0200 Subject: [PATCH] Remove org country field --- .../orgs/migrations/0167_remove_org_country.py | 17 +++++++++++++++++ temba/orgs/models.py | 3 --- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 temba/orgs/migrations/0167_remove_org_country.py diff --git a/temba/orgs/migrations/0167_remove_org_country.py b/temba/orgs/migrations/0167_remove_org_country.py new file mode 100644 index 0000000000..9840f66247 --- /dev/null +++ b/temba/orgs/migrations/0167_remove_org_country.py @@ -0,0 +1,17 @@ +# Generated by Django 5.1.4 on 2025-01-09 18:17 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("orgs", "0166_clear_org_country_field"), + ] + + operations = [ + migrations.RemoveField( + model_name="org", + name="country", + ), + ] diff --git a/temba/orgs/models.py b/temba/orgs/models.py index f13d0dcb70..903f5cbaf7 100644 --- a/temba/orgs/models.py +++ b/temba/orgs/models.py @@ -536,9 +536,6 @@ class Org(SmartModel): released_on = models.DateTimeField(null=True) deleted_on = models.DateTimeField(null=True) - # Deprecated - country = models.ForeignKey("locations.AdminBoundary", null=True, on_delete=models.PROTECT) - def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)