From 4c5912ebc00e6673f903d7a1300a5f02965cb5f6 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Mon, 5 Mar 2018 20:00:31 +0530 Subject: [PATCH] dropdown target fix --- datacenterlight/cms_models.py | 2 +- datacenterlight/migrations/0012_dclcalculatorpluginmodel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,