mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-03 23:14:08 +03:00
16 lines
349 B
Python
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
|