Revision cd771306 crm/robocrm/models.py

View differences:

crm/robocrm/models.py
1 1
from django.db import models
2 2

  
3 3
# User Model
4
class User(models.model):
5
  andrewID = models.CharField(max_length=8)
6
  first_name = models.CharField(max_length=30)
7
  last_name = models.CharField(max_length=30)
4
class RoboUser(AbstractBaseUser):
5
  andrewID = models.CharField(max_length=8, unique=True, db_index=True)
6
  
7

  
8

  
9

  
10
  USERNAME_FIELD = 'andrewID'
8 11
  

Also available in: Unified diff