server/authentication/models.py
author rougeronj
Thu, 02 Apr 2015 12:02:07 +0200
changeset 53 dac1df90b49e
parent 51 032280909e65
child 63 bd7bcfc86232
permissions -rw-r--r--
fucntion and button to add a book

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)