Fixes #20771: make comments for JournalEntryies required (#20773)

This commit is contained in:
Arthur Hanson
2025-11-07 15:27:41 -08:00
committed by GitHub
parent 4be476eb49
commit 327d08f4c2
2 changed files with 5 additions and 1 deletions

View File

@@ -272,6 +272,10 @@ class JournalEntryImportForm(NetBoxModelImportForm):
choices=JournalEntryKindChoices,
help_text=_('The classification of entry')
)
comments = forms.CharField(
label=_('Comments'),
required=True
)
class Meta:
model = JournalEntry

View File

@@ -793,7 +793,7 @@ class JournalEntryForm(NetBoxModelForm):
label=_('Kind'),
choices=JournalEntryKindChoices
)
comments = CommentField()
comments = CommentField(required=True)
class Meta:
model = JournalEntry