#16886: Rename Event to EventType

This commit is contained in:
Jeremy Stretch
2024-07-31 15:39:05 -04:00
parent 5cfa2bb561
commit d1e16013f0
6 changed files with 45 additions and 45 deletions

View File

@@ -4,12 +4,12 @@ Plugins can register their own custom event types for use with NetBox [event rul
```python
from django.utils.translation import gettext_lazy as _
from netbox.events import Event, EVENT_TYPE_SUCCESS
from netbox.events import EventType, EVENT_TYPE_KIND_SUCCESS
Event(
EventType(
name='ticket_opened',
text=_('Ticket opened'),
type=EVENT_TYPE_SUCCESS
type=EVENT_TYPE_KIND_SUCCESS
).register()
```