Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
confirmation: Use BigInteger to match other models' "id" field.
Alex Vandiver9e02e562bb96
diff --git a/confirmation/migrations/0015_alter_confirmation_object_id.py b/confirmation/migrations/0015_alter_confirmation_object_id.pynew file mode 100644index 00000000000..fc34226ae87--- /dev/null+++ b/confirmation/migrations/0015_alter_confirmation_object_id.py@@ -0,0 +1,15 @@+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("confirmation", "0014_confirmation_confirmatio_content_80155a_idx"),+ ]++ operations = [+ migrations.AlterField(+ model_name="confirmation",+ name="object_id",+ field=models.PositiveBigIntegerField(db_index=True),+ ),+ ]diff --git a/confirmation/models.py b/confirmation/models.pyindex 90fac69d669..262d196feee 100644--- a/confirmation/models.py+++ b/confirmation/models.py@@ -209,7 +209,7 @@ def confirmation_url(class Confirmation(models.Model):content_type = models.ForeignKey(ContentType, on_delete=CASCADE)- object_id = models.PositiveIntegerField(db_index=True)+ object_id = models.PositiveBigIntegerField(db_index=True)content_object = GenericForeignKey("content_type", "object_id")date_sent = models.DateTimeField(db_index=True)confirmation_key = models.CharField(max_length=40, db_index=True)