diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 17:50:47 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 17:50:47 -0400 |
| commit | ae4f2514267571c0bdf9bfa933600abe9cc8baa6 (patch) | |
| tree | fa93124fa06b04434f494d6116a9cf98c3acc61c /app/dispatch/models.py | |
| parent | 5b2f6041e739be4810709ca49d0538279d3f549d (diff) | |
| download | dispatch-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.py | 4 |
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 |
