poulpe/users/models.py

21 lines
431 B
Python
Raw Normal View History

2017-02-18 01:45:22 +01:00
from django.db import models
2017-07-23 16:20:28 +02:00
from django.contrib.auth.models import AbstractUser, UserManager
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):
phone = models.CharField(
_('numéro de téléphone'),
max_length=20,
blank=True,
)
objects = UserManager()
class Meta:
verbose_name = _("utilisateur")
verbose_name_plural = _("utilisateurs")
2017-07-21 15:48:40 +02:00