We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5075b commit f51a376Copy full SHA for f51a376
geonode/services/models.py
@@ -79,7 +79,7 @@ class Service(ResourceBase):
79
# Supported Capabilities
80
81
def save(self, notify=False, *args, **kwargs):
82
- if kwargs.get("force_insert", False):
+ if kwargs.get("force_insert", False) and self.password:
83
# if is the first creation, we must encrypt the password
84
self.password = self.set_password(self.password)
85
return super().save(notify, *args, **kwargs)
0 commit comments