From 6c1bfaf05290ba63417ea3e97c5b9192e9e76f0a Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 2 Sep 2025 10:20:23 -0500 Subject: [PATCH] Increase server url max length from 200 to 1000 characters to accomodate tokens in the url --- .../0017_alter_m3uaccount_custom_properties_and_more.py | 7 ++++++- apps/m3u/models.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/m3u/migrations/0017_alter_m3uaccount_custom_properties_and_more.py b/apps/m3u/migrations/0017_alter_m3uaccount_custom_properties_and_more.py index 28122ab9..84cb968b 100644 --- a/apps/m3u/migrations/0017_alter_m3uaccount_custom_properties_and_more.py +++ b/apps/m3u/migrations/0017_alter_m3uaccount_custom_properties_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.2.4 on 2025-09-02 14:30 +# Generated by Django 5.2.4 on 2025-09-02 15:19 from django.db import migrations, models @@ -15,6 +15,11 @@ class Migration(migrations.Migration): name='custom_properties', field=models.JSONField(blank=True, default=dict, null=True), ), + migrations.AlterField( + model_name='m3uaccount', + name='server_url', + field=models.URLField(blank=True, help_text='The base URL of the M3U server (optional if a file is uploaded)', max_length=1000, null=True), + ), migrations.AlterField( model_name='m3ufilter', name='custom_properties', diff --git a/apps/m3u/models.py b/apps/m3u/models.py index abeb3c06..9870aa93 100644 --- a/apps/m3u/models.py +++ b/apps/m3u/models.py @@ -29,6 +29,7 @@ class M3UAccount(models.Model): max_length=255, unique=True, help_text="Unique name for this M3U account" ) server_url = models.URLField( + max_length=1000, blank=True, null=True, help_text="The base URL of the M3U server (optional if a file is uploaded)",