We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8adc4f3 commit 29697c3Copy full SHA for 29697c3
src/argus/notificationprofile/models.py
@@ -183,10 +183,13 @@ class Meta:
183
def __str__(self):
184
if self.label:
185
return self.label
186
- if isinstance(self.settings, str):
187
- settings = self.settings
188
if isinstance(self.settings, dict):
189
settings = str(list(self.settings.values()))
+ elif isinstance(self.settings, str):
+ # This is due to transmogrifying what is in settings on the
190
+ # form/obj and is dangerous. Should go away when validating with
191
+ # forms.
192
+ settings = self.settings
193
else:
194
settings = str(self.settings)
195
LOG.warn("WTF, this should be a dict (%s)", settings)
0 commit comments