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")
|