diff --git a/datacenterlight/cms_models.py b/datacenterlight/cms_models.py index a4406c04..20e39fde 100644 --- a/datacenterlight/cms_models.py +++ b/datacenterlight/cms_models.py @@ -122,7 +122,7 @@ class DCLLinkPluginModel(CMSPlugin): class DCLNavbarDropdownPluginModel(CMSPlugin): target = models.CharField( - max_length=100, + max_length=100, null=True, blank=True, help_text='Optional Url or #id to navigate on click' ) text = models.CharField( diff --git a/datacenterlight/migrations/0012_dclcalculatorpluginmodel.py b/datacenterlight/migrations/0012_dclcalculatorpluginmodel.py index 0f7f3a53..1aa492af 100644 --- a/datacenterlight/migrations/0012_dclcalculatorpluginmodel.py +++ b/datacenterlight/migrations/0012_dclcalculatorpluginmodel.py @@ -38,7 +38,7 @@ class Migration(migrations.Migration): fields=[ ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')), ('text', models.CharField(help_text='Text for the dropdown toggle', max_length=50)), - ('target', models.CharField(default='', help_text='Optional Url or #id to navigate on click', max_length=100)), + ('target', models.CharField(blank=True, help_text='Optional Url or #id to navigate on click', max_length=100, null=True)), ], options={ 'abstract': False,