diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-10 23:33:11 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-10 23:33:11 -0400 |
| commit | 5369537388a3239f3f19080053fcdab6ad9b95eb (patch) | |
| tree | e629c68fb17527ee3eb441c4dd1945e39d7e032d /app/dispatch/models.py | |
| parent | 2ec4f69f6f494def901826ad8fdbfb05d2fcfb75 (diff) | |
| download | dispatch-tracker-5369537388a3239f3f19080053fcdab6ad9b95eb.tar.gz dispatch-tracker-5369537388a3239f3f19080053fcdab6ad9b95eb.tar.xz | |
Rip out registration and the audit log for now. Upgrade to Django 3.2
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py index a933c76..aba8a92 100644 --- a/app/dispatch/models.py +++ b/app/dispatch/models.py @@ -1,7 +1,5 @@ from django.db import models from django.conf import settings -from auditlog.registry import auditlog -from auditlog.models import AuditlogHistoryField # from django.contrib.auth import get_user_model from datetime import datetime from django.core.exceptions import ObjectDoesNotExist @@ -15,7 +13,6 @@ import re class Customer(models.Model): - history = AuditlogHistoryField() name = models.CharField(max_length=256) address = models.CharField(max_length=256) phone_number = models.DecimalField(max_digits=16,decimal_places=0) @@ -42,7 +39,6 @@ class Customer(models.Model): class Load(models.Model): - history = AuditlogHistoryField() date = models.DateField() user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) customer = models.ForeignKey(Customer, on_delete=models.CASCADE) @@ -217,12 +213,3 @@ class InvoiceItem(models.Model): def total(self): return self.quantity*self.amount - - - - -auditlog.register(Invoice) -auditlog.register(UserInvoiceNumber) -auditlog.register(Identity) -auditlog.register(Customer) -auditlog.register(Load) |
