aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/models.py
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-10-18 17:50:47 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-10-18 17:50:47 -0400
commitae4f2514267571c0bdf9bfa933600abe9cc8baa6 (patch)
treefa93124fa06b04434f494d6116a9cf98c3acc61c /app/dispatch/models.py
parent5b2f6041e739be4810709ca49d0538279d3f549d (diff)
downloaddispatch-tracker-ae4f2514267571c0bdf9bfa933600abe9cc8baa6.tar.gz
dispatch-tracker-ae4f2514267571c0bdf9bfa933600abe9cc8baa6.tar.xz
Go to the view page after create/edit
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