From 9f6ccec1eaf6a1ad860f7f44799d1b1be8bd48b9 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 4 Jul 2024 16:50:42 -0400 Subject: [PATCH] Correct absolute URLs for notifications & subscriptions --- netbox/extras/models/notifications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/netbox/extras/models/notifications.py b/netbox/extras/models/notifications.py index 954fe2c49..bbf7bba58 100644 --- a/netbox/extras/models/notifications.py +++ b/netbox/extras/models/notifications.py @@ -85,7 +85,7 @@ class Notification(models.Model): return super().__str__() def get_absolute_url(self): - return reverse('extras:notifications') + return reverse('account:notifications') def get_read_url(self): return reverse('extras:notification_read', kwargs={'pk': self.pk}) @@ -205,6 +205,9 @@ class Subscription(models.Model): verbose_name = _('subscription') verbose_name_plural = _('subscriptions') + def get_absolute_url(self): + return reverse('account:subscriptions') + def clean(self): super().clean()