From 6570c34936db699895e564639ab150f9f3d439e1 Mon Sep 17 00:00:00 2001 From: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Date: Wed, 1 Jan 2025 17:50:34 -0500 Subject: [PATCH] Add migration to alter 'agent' field in 'ip' model to allow blank and null values --- website/migrations/0178_alter_ip_agent.py | 17 +++++++++++++++++ website/models.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 website/migrations/0178_alter_ip_agent.py diff --git a/website/migrations/0178_alter_ip_agent.py b/website/migrations/0178_alter_ip_agent.py new file mode 100644 index 000000000..b01cb53c1 --- /dev/null +++ b/website/migrations/0178_alter_ip_agent.py @@ -0,0 +1,17 @@ +# Generated by Django 5.1.4 on 2025-01-01 22:50 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("website", "0177_project_project_visit_count"), + ] + + operations = [ + migrations.AlterField( + model_name="ip", + name="agent", + field=models.TextField(blank=True, null=True), + ), + ] diff --git a/website/models.py b/website/models.py index afc7f8dbb..a9029ae03 100644 --- a/website/models.py +++ b/website/models.py @@ -739,7 +739,7 @@ class IP(models.Model): user = models.CharField(max_length=150, null=True, blank=True) issuenumber = models.IntegerField(null=True, blank=True) created = models.DateTimeField(auto_now_add=True) - agent = models.CharField(max_length=255, null=True, blank=True) + agent = models.TextField(null=True, blank=True) count = models.BigIntegerField(default=1) path = models.CharField(max_length=255, null=True, blank=True) method = models.CharField(max_length=10, null=True, blank=True)