diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-02-13 21:40:48 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-02-13 21:40:48 -0500 |
| commit | 49f9df9b774b48ceef6f3a99f7a6f4912730dc5f (patch) | |
| tree | 5014e304fa69c0d48ae842780c488440314f0576 /app/dispatch/models.py | |
| parent | 1d5d056670d9d63d27d6363de4563435d5ff4cdb (diff) | |
| download | dispatch-tracker-49f9df9b774b48ceef6f3a99f7a6f4912730dc5f.tar.gz dispatch-tracker-49f9df9b774b48ceef6f3a99f7a6f4912730dc5f.tar.xz | |
Add logging for Invoices, User Invoice Number, and Identity. Added template to show audit logs as well as a view
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py index 0dde07b..451eb31 100644 --- a/app/dispatch/models.py +++ b/app/dispatch/models.py @@ -51,7 +51,7 @@ class Load(models.Model): amount = models.DecimalField(max_digits=10,decimal_places=2, default="0") def __str__(self): - return "{c}, {d} ( {a} )".format( + return "Load, Customer: {c}, Description: {d} Amount: {a}".format( c=self.customer, d=self.description, a=self.amount) def get_absolute_url(self): @@ -206,5 +206,8 @@ class InvoiceItem(models.Model): +auditlog.register(Invoice) +auditlog.register(UserInvoiceNumber) +auditlog.register(Identity) auditlog.register(Customer) auditlog.register(Load) |
