aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-10-09 15:18:41 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-10-09 15:18:41 -0400
commit3dfa8b6b906094d4a541e76b23d25e8d2db6eb1b (patch)
treead0b3760fcf7d496ce44720693dec51ca0636d82
parentef657f999a83c91b71c742f99d5ce0435a840967 (diff)
parenta3e789981e0ff8151dcaf51dd97137bc86e9cf59 (diff)
downloaddispatch-tracker-3dfa8b6b906094d4a541e76b23d25e8d2db6eb1b.tar.gz
dispatch-tracker-3dfa8b6b906094d4a541e76b23d25e8d2db6eb1b.tar.xz
Merge branch 'development' of https://git.riedstra.us/mitch/dispatch-tracker into development
-rw-r--r--app/dispatch/models.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py
index 4e3a855..440804e 100644
--- a/app/dispatch/models.py
+++ b/app/dispatch/models.py
@@ -9,21 +9,11 @@ class Company(models.Model):
address = models.CharField(max_length=256)
phone_number = models.DecimalField(max_digits=16,decimal_places=0)
email_address = models.CharField(max_length=256)
- primary_contact = models.ForeignKey('Contact', blank=True, null=True)
+ contact_name = models.CharField(max_length=256)
def __str__(self):
return self.name
-class Contact(models.Model):
- first_name = models.CharField(max_length=64)
- last_name = models.CharField(max_length=64)
- phone_number = models.DecimalField(max_digits=16,decimal_places=0)
- email_address = models.CharField(max_length=256)
- works_for = models.ForeignKey(Company)
-
- def __str__(self):
- return "{f} {l} ( {c} )".format(c=self.works_for, f=self.first_name, l=self.last_name)
-
class Load(models.Model):
load_number = models.CharField(max_length=64,default="")
date = models.DateField()
@@ -47,5 +37,4 @@ class Load(models.Model):
auditlog.register(Company)
-auditlog.register(Contact)
-auditlog.register(Load) \ No newline at end of file
+auditlog.register(Load)