Fixes #20771: make comments for JournalEntryies required (#20773)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled

This commit is contained in:
Arthur Hanson 2025-11-07 15:27:41 -08:00 committed by GitHub
parent 4be476eb49
commit 327d08f4c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

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

View File

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