Skip to content

Commit 3ae4d98

Browse files
committed
Add support for django 5.2.x
1 parent c4bede6 commit 3ae4d98

3 files changed

Lines changed: 113 additions & 41 deletions

File tree

src/geoip/mitol/geoip/migrations/0001_add_geoip_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Migration(migrations.Migration):
110110
migrations.AddConstraint(
111111
model_name="netblock",
112112
constraint=models.CheckConstraint(
113-
check=models.Q(
113+
condition=models.Q(
114114
("geoname_id__isnull", False),
115115
("registered_country_geoname_id__isnull", False),
116116
("represented_country_geoname_id__isnull", False),

src/geoip/mitol/geoip/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class NetBlock(models.Model):
9191
class Meta:
9292
constraints = [
9393
models.CheckConstraint(
94-
check=models.Q(geoname_id__isnull=False)
94+
condition=models.Q(geoname_id__isnull=False)
9595
| models.Q(registered_country_geoname_id__isnull=False)
9696
| models.Q(represented_country_geoname_id__isnull=False),
9797
name="at_least_one_geoname_id",

0 commit comments

Comments
 (0)