aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/monkey_patch.py
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-11-02 16:03:14 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-11-02 16:03:14 -0400
commite16fa08b915562c6ab77ce7bb79a9d766b5a4036 (patch)
tree2f7d518131600f2db7bc3ac0545f11f2571c2aee /app/dispatch/monkey_patch.py
parente4d865b1a61f6a72551e70abad78c6c35b9345e7 (diff)
downloaddispatch-tracker-e16fa08b915562c6ab77ce7bb79a9d766b5a4036.tar.gz
dispatch-tracker-e16fa08b915562c6ab77ce7bb79a9d766b5a4036.tar.xz
Initial setup to use a custom User model, I still need to figure out how to use the built in Django permissions though
Diffstat (limited to 'app/dispatch/monkey_patch.py')
-rw-r--r--app/dispatch/monkey_patch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/dispatch/monkey_patch.py b/app/dispatch/monkey_patch.py
index 3b87287..cc61b6e 100644
--- a/app/dispatch/monkey_patch.py
+++ b/app/dispatch/monkey_patch.py
@@ -1,6 +1,9 @@
-from django.contrib.auth.models import User
+from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
+# This should be going away soon with the addition
+# of my custom user model
+
def get_absolute_url(self):
return reverse('driver_details', kwargs={'pk': self.pk})