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.
2 parents fb66634 + 8e06e6d commit e6eb6dcCopy full SHA for e6eb6dc
β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