Skip to content

Instantly share code, notes, and snippets.

@smotes
smotes / models.py
Created May 1, 2014 15:14
users/models.py
from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.core.urlresolvers import reverse
from .managers import UserManager
class User(AbstractBaseUser):
email = models.EmailField(max_length=255, unique=True)
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)