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 8bbda8b commit 8e06e6dCopy full SHA for 8e06e6d
netbox_diode_plugin/models.py
@@ -24,6 +24,7 @@ class Setting(NetBoxModel):
24
"""Setting model."""
25
26
diode_target = models.CharField(max_length=255, validators=[diode_target_validator])
27
+ tags = None
28
29
class Meta:
30
"""Meta class."""
netbox_diode_plugin/tests/test_models.py
@@ -28,3 +28,8 @@ def test_absolute_url(self):
"""Check Setting model absolute URL."""
setting = Setting()
self.assertEqual(setting.get_absolute_url(), "/netbox/plugins/diode/settings/")
31
+
32
+ def test_tags_disabled(self):
33
+ """Check Setting model has tags disabled."""
34
+ setting = Setting(diode_target="http://localhost:8080")
35
+ self.assertIsNone(setting.tags)
0 commit comments