cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/users/models.py
2013-12-17 16:27:18 +01: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