Added the get_absolute_url() method to the account data model in the accounting application.
This commit is contained in:
parent
f2455bb946
commit
5a91e85c8e
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user