aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/dispatch/models.py')
-rw-r--r--app/dispatch/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py
index 3174f14..6cbaf6c 100644
--- a/app/dispatch/models.py
+++ b/app/dispatch/models.py
@@ -7,7 +7,7 @@ import uuid
# Create your models here.
-class Company(models.Model):
+class Customer(models.Model):
history = AuditlogHistoryField()
name = models.CharField(max_length=256)
address = models.CharField(max_length=256)
@@ -23,14 +23,14 @@ class Load(models.Model):
history = AuditlogHistoryField()
date = models.DateField()
user = models.ForeignKey(settings.AUTH_USER_MODEL)
- company = models.ForeignKey(Company)
+ customer = models.ForeignKey(Customer)
description = models.CharField(max_length=256)
delivered_to = models.CharField(max_length=256, default="")
amount = models.DecimalField(max_digits=10,decimal_places=2, default="0")
def __str__(self):
return "{c}, {d} ( {a} )".format(
- c=self.company, d=self.description, a=self.amount)
+ c=self.customer, d=self.description, a=self.amount)
def get_absolute_url(self):
return "/loads/view/%i" % self.id
@@ -53,5 +53,5 @@ class Paperwork(models.Model):
return "%s" % self.load
-auditlog.register(Company)
+auditlog.register(Customer)
auditlog.register(Load)