1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Convert BUTTON_CLASS_CHOICES to a ChoiceSet

This commit is contained in:
Jeremy Stretch
2019-12-05 15:59:16 -05:00
parent bfea77baa5
commit 7a3c725f51
3 changed files with 27 additions and 19 deletions

View File

@@ -387,8 +387,8 @@ class CustomLink(models.Model):
)
button_class = models.CharField(
max_length=30,
choices=BUTTON_CLASS_CHOICES,
default=BUTTON_CLASS_DEFAULT,
choices=CustomLinkButtonClassChoices,
default=CustomLinkButtonClassChoices.CLASS_DEFAULT,
help_text="The class of the first link in a group will be used for the dropdown button"
)
new_window = models.BooleanField(