diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-06 17:43:33 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-06 17:43:33 -0500 |
| commit | 62f8c5e35949e41ecf777c36736bae1caa007179 (patch) | |
| tree | 7c5ae9efb327d1eda46bf4da05ed239c2041cbc4 /app/dispatchAuth | |
| parent | f5c84efd37085695732803b28d4a74cc05042e0e (diff) | |
| download | dispatch-tracker-62f8c5e35949e41ecf777c36736bae1caa007179.tar.gz dispatch-tracker-62f8c5e35949e41ecf777c36736bae1caa007179.tar.xz | |
Update the driver Detail page. Still need to fix the Identity Create function
Diffstat (limited to 'app/dispatchAuth')
| -rw-r--r-- | app/dispatchAuth/migrations/0002_auto_20171106_2233.py | 20 | ||||
| -rw-r--r-- | app/dispatchAuth/models.py | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/app/dispatchAuth/migrations/0002_auto_20171106_2233.py b/app/dispatchAuth/migrations/0002_auto_20171106_2233.py new file mode 100644 index 0000000..fa2f934 --- /dev/null +++ b/app/dispatchAuth/migrations/0002_auto_20171106_2233.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-11-06 22:33 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dispatchAuth', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='id', + field=models.AutoField(primary_key=True, serialize=False), + ), + ] diff --git a/app/dispatchAuth/models.py b/app/dispatchAuth/models.py index 6c90dd0..49e0a41 100644 --- a/app/dispatchAuth/models.py +++ b/app/dispatchAuth/models.py @@ -1,4 +1,5 @@ from django.contrib.auth.models import AbstractUser, AbstractBaseUser, PermissionsMixin, BaseUserManager +from django.core.urlresolvers import reverse from django.db import models # Create your models here. @@ -40,6 +41,7 @@ class UserManager(BaseUserManager): class User(PermissionsMixin, AbstractBaseUser): + id = models.AutoField(primary_key=True) email = models.EmailField(max_length=256, unique=True) first_name = models.CharField(max_length=256) last_name = models.CharField(max_length=256) |
