| author | rougeronj |
| Fri, 03 Apr 2015 15:03:04 +0200 | |
| changeset 63 | bd7bcfc86232 |
| parent 51 | 032280909e65 |
| child 103 | b707607e8a38 |
| permissions | -rw-r--r-- |
| 51 | 1 |
|
|
63
bd7bcfc86232
small update in models : idUser and idArtcle are not required anymore to allow anyone to connect and add a new empty book
rougeronj
parents:
51
diff
changeset
|
2 |
from django.contrib.auth.models import AbstractUser |
| 51 | 3 |
from django.db import models |
4 |
||
5 |
||
6 |
class AmmicoUser(AbstractUser): |
|
|
63
bd7bcfc86232
small update in models : idUser and idArtcle are not required anymore to allow anyone to connect and add a new empty book
rougeronj
parents:
51
diff
changeset
|
7 |
idUser = models.CharField(max_length=50, blank=True) |
| 51 | 8 |
|
9 |
class Profile(models.Model): |
|
10 |
user = models.OneToOneField(AmmicoUser) |
|
11 |
image = models.URLField(max_length=2048, blank=True) |