Correct absolute URLs for notifications & subscriptions

This commit is contained in:
Jeremy Stretch 2024-07-04 16:50:42 -04:00
parent cbffc24810
commit 9f6ccec1ea

View File

@ -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()