server/authentication/models.py
author rougeronj
Thu, 02 Apr 2015 11:57:39 +0200
changeset 51 032280909e65
child 63 bd7bcfc86232
permissions -rw-r--r--
add authentication module using Token Auth

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)