mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
15 lines
472 B
Python
15 lines
472 B
Python
|
import extras.filtersets
|
||
|
import extras.tables
|
||
|
from extras.models import JournalEntry
|
||
|
from netbox.search import SearchIndex, register_search
|
||
|
|
||
|
|
||
|
@register_search()
|
||
|
class JournalEntryIndex(SearchIndex):
|
||
|
model = JournalEntry
|
||
|
queryset = JournalEntry.objects.prefetch_related('assigned_object', 'created_by')
|
||
|
filterset = extras.filtersets.JournalEntryFilterSet
|
||
|
table = extras.tables.JournalEntryTable
|
||
|
url = 'extras:journalentry_list'
|
||
|
category = 'Journal'
|