requirements: Upgrade Django from 5.0.10 to 5.1.6.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-02-14 14:54:44 -08:00
committed by Tim Abbott
parent 22efac5a77
commit dd99ed019a
8 changed files with 12 additions and 12 deletions

View File

@@ -366,7 +366,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="customer",
constraint=models.CheckConstraint(
check=models.Q(
condition=models.Q(
("realm__isnull", False),
("remote_server__isnull", False),
("remote_realm__isnull", False),

View File

@@ -15,7 +15,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="customer",
constraint=models.CheckConstraint(
check=models.Q(
condition=models.Q(
("realm__isnull", False), ("remote_server__isnull", False), _connector="XOR"
),
name="cloud_xor_self_hosted",

View File

@@ -25,7 +25,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="customer",
constraint=models.CheckConstraint(
check=models.Q(
condition=models.Q(
("realm__isnull", False),
("remote_server__isnull", False),
("remote_realm__isnull", False),

View File

@@ -53,7 +53,7 @@ class Customer(models.Model):
# Enforce that at least one of these is set.
constraints = [
models.CheckConstraint(
check=Q(realm__isnull=False)
condition=Q(realm__isnull=False)
| Q(remote_server__isnull=False)
| Q(remote_realm__isnull=False),
name="has_associated_model_object",