cookiecutter-django/{{cookiecutter.repo_name}}/users/models.py
2013-08-16 13:54:47 +02:00

16 lines
349 B
Python

# -*- coding: utf-8 -*-
# Import the AbstractUser model
from django.contrib.auth.models import AbstractUser
# Import the basic Django ORM models library
from django.db import models
from django.utils.translation import ugettext_lazy as _
# Subclass AbstractUser
class User(AbstractUser):
def __unicode__(self):
return self.username