mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-04 07:24:04 +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
|