cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/users/models.py

16 lines
349 B
Python
Raw Normal View History

2013-08-16 15:54:47 +04:00
# -*- 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