diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-10-25 00:33:14 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-10-25 00:33:14 -0400 |
| commit | fae5a7e38ef7084990724df51488f54c52ec592d (patch) | |
| tree | cfed616d392e686a9bd6503cddcf099a759c5b74 /app/dispatch/models.py | |
| parent | 61dc16200b5ada1c16def723498e61d1bb112da3 (diff) | |
| download | dispatch-tracker-fae5a7e38ef7084990724df51488f54c52ec592d.tar.gz dispatch-tracker-fae5a7e38ef7084990724df51488f54c52ec592d.tar.xz | |
Better driver edit page as well as pages for working with Identity
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/dispatch/models.py b/app/dispatch/models.py index d525818..13650ac 100644 --- a/app/dispatch/models.py +++ b/app/dispatch/models.py @@ -65,6 +65,9 @@ class Identity(models.Model): st = Settings(key="default_bill_to", value=int(self.pk)) st.save() + def get_absolute_url(self): + return '/drivers/view/{:d}'.format(self.user.pk) + class Settings(models.Model): key = models.CharField(max_length=256) value = models.CharField(max_length=256) |
