diff --git a/froide_govplan/migrations/0007_auto_20220314_1422.py b/froide_govplan/migrations/0007_auto_20220314_1422.py new file mode 100644 index 0000000..799c870 --- /dev/null +++ b/froide_govplan/migrations/0007_auto_20220314_1422.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.12 on 2022-03-14 13:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('froide_govplan', '0006_sections_cms_plugin'), + ] + + operations = [ + migrations.AlterField( + model_name='governmentplanscmsplugin', + name='template', + field=models.CharField(blank=True, choices=[('froide_govplan/plugins/default.html', 'Normal'), ('froide_govplan/plugins/progress.html', 'Progress'), ('froide_govplan/plugins/card_cols.html', 'Card columns'), ('froide_govplan/plugins/search.html', 'Search')], help_text='template used to display the plugin', max_length=250, verbose_name='template'), + ), + migrations.AlterField( + model_name='governmentplanupdate', + name='url', + field=models.URLField(blank=True, max_length=1024, verbose_name='URL'), + ), + ] diff --git a/froide_govplan/models.py b/froide_govplan/models.py index 1a12070..bafe900 100644 --- a/froide_govplan/models.py +++ b/froide_govplan/models.py @@ -256,7 +256,7 @@ class GovernmentPlanUpdate(models.Model): timestamp = models.DateTimeField(default=timezone.now, verbose_name=_("timestamp")) title = models.CharField(max_length=1024, blank=True, verbose_name=_("title")) content = models.TextField(blank=True, verbose_name=_("content")) - url = models.URLField(blank=True, verbose_name=_("URL")) + url = models.URLField(blank=True, max_length=1024, verbose_name=_("URL")) status = models.CharField( max_length=25,