git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
portal: updated models + added requirements
[unfold.git]
/
portal
/
models.py
diff --git
a/portal/models.py
b/portal/models.py
index
79cb25d
..
3c950a6
100644
(file)
--- a/
portal/models.py
+++ b/
portal/models.py
@@
-21,6
+21,8
@@
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from django.db import models
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from django.db import models
+from .validators import validate_email
+
# Create your models here.
# Create your models here.
@@
-33,7
+35,7
@@
class PendingUser(models.Model):
# simplify form creation in forms.py
first_name = models.TextField()
last_name = models.TextField()
# simplify form creation in forms.py
first_name = models.TextField()
last_name = models.TextField()
- email = models.
TextField(
)
+ email = models.
EmailField(validators=[validate_email]
)
password = models.TextField()
keypair = models.TextField()
# institution
password = models.TextField()
keypair = models.TextField()
# institution