diff --git a/accounting/models.py b/accounting/models.py index 091f4b8..30c7bd2 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -82,6 +82,10 @@ class Account(DirtyFieldsMixin, models.Model): super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields) + def get_absolute_url(self): + """REturns the """ + return reverse("accounting:accounts.detail", args=(self,)) + class Meta: db_table = "accounting_accounts"