From a1e7a14357dd791ae27ca99c22c39bac1ccd6765 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:28:39 +0300 Subject: [PATCH] Fix lint error for rename plugin --- qgis-app/plugins/forms.py | 2 +- qgis-app/plugins/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qgis-app/plugins/forms.py b/qgis-app/plugins/forms.py index 432c51a2..17a971ae 100644 --- a/qgis-app/plugins/forms.py +++ b/qgis-app/plugins/forms.py @@ -144,7 +144,7 @@ def clean(self): f"Plugin name mismatch: the plugin name in the metadata.txt file ({self.cleaned_data.get('name')}) is different from the plugin name ({self.instance.plugin.name})." ) ) - + # Check plugin folder name if ( self.cleaned_data.get("package_name") diff --git a/qgis-app/plugins/models.py b/qgis-app/plugins/models.py index c8e95030..b2b1911d 100644 --- a/qgis-app/plugins/models.py +++ b/qgis-app/plugins/models.py @@ -319,13 +319,13 @@ class Plugin(models.Model): name = models.CharField( _("Name"), help_text=_("Must be unique"), max_length=256, unique=True ) - + allow_update_name = models.BooleanField( _("Allow update name"), help_text=_("Allow name in metadata.txt to update the plugin name"), default=False ) - + description = models.TextField(_("Description")) about = models.TextField(_("About"), blank=False, null=True)