search.py 239 B

1234567891011
  1. from netbox.search import SearchIndex, register_search
  2. from . import models
  3. @register_search
  4. class JournalEntryIndex(SearchIndex):
  5. model = models.JournalEntry
  6. fields = (
  7. ('comments', 5000),
  8. )
  9. category = 'Journal'