diff --git a/users/models.py b/users/models.py
index 4782ce4..634c7f1 100644
--- a/users/models.py
+++ b/users/models.py
@@ -34,7 +34,7 @@ class User(AbstractBaseUser, PermissionsMixin):
is_active = models.BooleanField(_('Active'), default = True)
USERNAME_FIELD = 'username'
- REQUIRED_FIELDS = ['email']
+ REQUIRED_FIELDS = ['email', 'cpf']
objects = UserManager()
diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html
index 426e474..7a209b0 100644
--- a/users/templates/users/profile.html
+++ b/users/templates/users/profile.html
@@ -14,7 +14,7 @@
{% block sidebar %}
-
Menu
+ {% trans "Menu" %}
@@ -50,19 +50,19 @@
- Status: |
- Offline |
+ {% trans "Status" %}: |
+ |
- Nome: |
+ {% trans "Nome" %}: |
{{user}} |
- Login: |
+ {% trans "Login" %} |
{{user.username}} |
- Email: |
+ {% trans "Email" %}: |
{{user.email}} |
@@ -74,44 +74,71 @@
- Tipo de usuário: |
- {{use.type_profile}} |
+ {% trans "Tipo de Usuário" %}: |
+ {% if user.type_profile == 1 %}
+ {% trans "Teacher" %} |
+ {% else %}
+ {% trans "Student" %} |
+ {% endif %}
+
- CPF: |
- {{user.cpf}} |
+ {% trans "CPF" %}: |
+ {% if user.cpf %}
+ {{user.cpf}} |
+
+ {% else %}
+ {% trans "doesn't posssess CPF" %} |
+ {% endif %}
+
- Número de telefone: |
- {{user.phone}} |
+ {% trans "Phone Number" %}: |
+ {% if user.phone %}
+ {{user.phone}} |
+ {% else %}
+ {% trans "doesn't posssess Phone" %} |
+ {% endif %}
+
- Sexo: |
+ {% trans "Gender" %}: |
{{user.gender}} |
- Data de Nascimento: |
+ {% trans "Birth Date" %}: |
{{user.birth_date}} |
- Estado e Cidade: |
+ {% trans "State and City" %}: |
{{user.state}} - {{user.city}} |
- Titulação: |
- Mestrado |
+ {% trans "Title" %}: |
+ {{user.titration}} |
- Ano: |
- 2012 |
+ {% trans "Year" %}: |
+ {{user.year_titration}} |
- Instituição: |
- UFPE |
+ {% trans "Institution" %}: |
+ {% if user.institution %}
+ {{user.institution}} |
+ {% else %}
+ {% trans "Didn't inform institution" %} |
+ {% endif %}
+
+
- Currículo: |
- - |
+ {% trans "Curriculum" %}: |
+ {% if user.curriculum %}
+ {{user.curriculum}} |
+ {% else %}
+ {% trans "Didn't upload any curriculum" %} |
+ {% endif %}
+
--
libgit2 0.21.2