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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py
index 0dd2ac7..62af763 100644
--- a/app/dispatch/models.py
+++ b/app/dispatch/models.py
@@ -29,6 +29,10 @@ class Load(models.Model):
return "{c}, {d} ( {a} )".format(c=self.company, d=self.description, a=self.amount)
+ def get_absolute_url(self):
+ return "/loads/view/%i" % self.id
+
+
# This is used to set the upload path of the document for Paperwork Objects