server/authentication/models.py
author rougeronj
Thu, 28 May 2015 09:56:40 +0200
changeset 103 b707607e8a38
parent 63 bd7bcfc86232
child 108 4a152f5f4a09
permissions -rw-r--r--
refer to the user model through settings.AUTH_USER_MODEL


from django.contrib.auth.models import AbstractUser
from django.db import models

import settings


class AmmicoUser(AbstractUser):
    idUser = models.CharField(max_length=50, blank=True)
    
class Profile(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL)
    image = models.URLField(max_length=2048, blank=True)