Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncation added for String length #3022

Closed
wants to merge 14 commits into from
21 changes: 21 additions & 0 deletions website/migrations/0177_alter_badge_icon_alter_ip_agent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.1.3 on 2024-12-03 00:11
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("website", "0176_repo_contributor_repo_contributor_count_and_more"),
]

operations = [
migrations.AlterField(
model_name="badge",
name="icon",
field=models.ImageField(blank=True, null=True, upload_to="badges/"),
),
migrations.AlterField(
model_name="ip",
name="agent",
field=models.TextField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading