From 29926f2207cbed26bdb1e66b460bbd9aed8c0075 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Sat, 6 Jan 2024 00:19:45 -0500 Subject: [PATCH] increase attachment remote_url limit --- .../0020_alter_postattachment_remote_url.py | 17 +++++++++++++++++ activities/models/post_attachment.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 activities/migrations/0020_alter_postattachment_remote_url.py diff --git a/activities/migrations/0020_alter_postattachment_remote_url.py b/activities/migrations/0020_alter_postattachment_remote_url.py new file mode 100644 index 0000000..4a71adb --- /dev/null +++ b/activities/migrations/0020_alter_postattachment_remote_url.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.8 on 2024-01-06 05:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("activities", "0019_alter_postattachment_focal_x_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="postattachment", + name="remote_url", + field=models.CharField(blank=True, max_length=2500, null=True), + ), + ] diff --git a/activities/models/post_attachment.py b/activities/models/post_attachment.py index ed17558..e6d4424 100644 --- a/activities/models/post_attachment.py +++ b/activities/models/post_attachment.py @@ -50,7 +50,7 @@ class PostAttachment(StatorModel): blank=True, ) - remote_url = models.CharField(max_length=500, null=True, blank=True) + remote_url = models.CharField(max_length=2500, null=True, blank=True) # This is the description for images, at least name = models.TextField(null=True, blank=True)