server/authentication/models.py
changeset 51 032280909e65
child 63 bd7bcfc86232
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/authentication/models.py	Thu Apr 02 11:57:39 2015 +0200
@@ -0,0 +1,15 @@
+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)
\ No newline at end of file