mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Correct absolute URLs for notifications & subscriptions
This commit is contained in:
parent
cbffc24810
commit
9f6ccec1ea
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user