mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 20:12:42 -06:00
#16886: Rename Event to EventType
This commit is contained in:
@@ -27,7 +27,7 @@ def get_event_type_choices():
|
||||
"""
|
||||
return [
|
||||
(name, event.text)
|
||||
for name, event in registry['events'].items()
|
||||
for name, event in registry['event_types'].items()
|
||||
]
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class Notification(models.Model):
|
||||
"""
|
||||
Returns the registered Event which triggered this Notification.
|
||||
"""
|
||||
return registry['events'].get(self.event_type)
|
||||
return registry['event_types'].get(self.event_type)
|
||||
|
||||
|
||||
class NotificationGroup(ChangeLoggedModel):
|
||||
|
||||
Reference in New Issue
Block a user