diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-02 16:03:14 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-02 16:03:14 -0400 |
| commit | e16fa08b915562c6ab77ce7bb79a9d766b5a4036 (patch) | |
| tree | 2f7d518131600f2db7bc3ac0545f11f2571c2aee /app/dispatch/views.py | |
| parent | e4d865b1a61f6a72551e70abad78c6c35b9345e7 (diff) | |
| download | dispatch-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/views.py')
| -rw-r--r-- | app/dispatch/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/dispatch/views.py b/app/dispatch/views.py index 918cf0d..5a94775 100644 --- a/app/dispatch/views.py +++ b/app/dispatch/views.py @@ -15,7 +15,7 @@ from django.core.urlresolvers import reverse_lazy from dispatch.models import Customer, Load, Paperwork, \ Invoice, UserInvoiceNumber, Identity from dispatch.forms import AddPaperworkForm -from django.contrib.auth.models import User +from django.contrib.auth import get_user_model from django.contrib.auth.mixins import UserPassesTestMixin # from django.http import HttpResponseRedirect from .misc import get_week_dates, split_loads_by_day @@ -23,6 +23,8 @@ import datetime import re import os +User = get_user_model() + def home(request): return redirect(reverse('load_list')) |
