Closes #17841 Allows Tags to be displayed in specified order (#18930)

This commit is contained in:
Jason Novinger
2025-03-19 12:17:35 -05:00
committed by GitHub
parent d25605c261
commit 6b7d23d684
15 changed files with 110 additions and 18 deletions

View File

@@ -232,10 +232,14 @@ class EventRuleImportForm(NetBoxModelImportForm):
class TagImportForm(CSVModelForm):
slug = SlugField()
weight = forms.IntegerField(
label=_('Weight'),
required=False
)
class Meta:
model = Tag
fields = ('name', 'slug', 'color', 'description')
fields = ('name', 'slug', 'color', 'weight', 'description')
class JournalEntryImportForm(NetBoxModelImportForm):