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

Add JournalEntry list view w/filtering

This commit is contained in:
Jeremy Stretch
2021-03-16 15:57:23 -04:00
parent 64d11d32c8
commit 8be4fbbce3
9 changed files with 94 additions and 10 deletions

View File

@ -286,6 +286,14 @@ class ImageAttachmentDeleteView(generic.ObjectDeleteView):
# Journal entries
#
class JournalEntryListView(generic.ObjectListView):
queryset = JournalEntry.objects.all()
filterset = filters.JournalEntryFilterSet
filterset_form = forms.JournalEntryFilterForm
table = tables.JournalEntryTable
action_buttons = ('export',)
class JournalEntryEditView(generic.ObjectEditView):
queryset = JournalEntry.objects.all()
model_form = forms.JournalEntryForm