From ae4f2514267571c0bdf9bfa933600abe9cc8baa6 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 18 Oct 2017 17:50:47 -0400 Subject: Go to the view page after create/edit --- app/dispatch/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/dispatch/models.py') 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 -- cgit v1.2.3