diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-10-19 21:11:29 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-10-19 21:11:29 -0400 |
| commit | 427c5f1fd2061e229ad06dde4bd5921d296b12d9 (patch) | |
| tree | 03b954f9a1683683db115b1397159401dc7a003c /app/dispatch/models.py | |
| parent | b8972c970ef70aae82b8a659af23bcb24bf998d1 (diff) | |
| download | dispatch-tracker-427c5f1fd2061e229ad06dde4bd5921d296b12d9.tar.gz dispatch-tracker-427c5f1fd2061e229ad06dde4bd5921d296b12d9.tar.xz | |
Rename Company to Customer system wide. Let's not do this again
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 8 |
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) |
