server/authentication/models.py
author rougeronj
Thu, 02 Apr 2015 12:06:51 +0200
changeset 54 ccb586464a6f
parent 51 032280909e65
child 63 bd7bcfc86232
permissions -rw-r--r--
clean js and minor update in html and css

import json

from django.contrib.auth.models import AbstractUser, BaseUserManager
from django.db import models
from django.utils import timezone
import requests

from config import URL_JAMESPOT

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