Commit 9531868c2381ca3771044aee758038b5d3a22f0a
1 parent
c9f59a8c
Exists in
master
and in
5 other branches
Closing issues ... close #22
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
core/forms.py
@@ -6,7 +6,7 @@ class RegisterUserForm(forms.ModelForm): | @@ -6,7 +6,7 @@ class RegisterUserForm(forms.ModelForm): | ||
6 | 6 | ||
7 | password = forms.CharField(label='Senha', widget=forms.PasswordInput) | 7 | password = forms.CharField(label='Senha', widget=forms.PasswordInput) |
8 | password2 = forms.CharField(label = 'Confirmacao de Senha', widget = forms.PasswordInput) | 8 | password2 = forms.CharField(label = 'Confirmacao de Senha', widget = forms.PasswordInput) |
9 | - | 9 | + birth_date = forms.DateField(widget=forms.SelectDateWidget()) |
10 | MIN_LENGTH = 8 | 10 | MIN_LENGTH = 8 |
11 | 11 | ||
12 | def clean_password(self): | 12 | def clean_password(self): |
@@ -42,4 +42,4 @@ class RegisterUserForm(forms.ModelForm): | @@ -42,4 +42,4 @@ class RegisterUserForm(forms.ModelForm): | ||
42 | class Meta: | 42 | class Meta: |
43 | model = User | 43 | model = User |
44 | # exclude = ['is_staff', 'is_active'] | 44 | # exclude = ['is_staff', 'is_active'] |
45 | - fields = ['username', 'name', 'email', 'city', 'state', 'birth_date', 'gender', 'cpf', 'phone', 'image'] | ||
46 | \ No newline at end of file | 45 | \ No newline at end of file |
46 | + fields = ['username', 'name', 'email', 'city', 'state', 'gender', 'cpf', 'phone', 'image'] | ||
47 | \ No newline at end of file | 47 | \ No newline at end of file |
core/models.py
@@ -35,9 +35,10 @@ class Resource(models.Model): | @@ -35,9 +35,10 @@ class Resource(models.Model): | ||
35 | 35 | ||
36 | name = models.CharField(_('Name'), max_length =100) | 36 | name = models.CharField(_('Name'), max_length =100) |
37 | created_date = models.DateField(_('Created Date'), auto_now_add=True) | 37 | created_date = models.DateField(_('Created Date'), auto_now_add=True) |
38 | + | ||
38 | class Meta: | 39 | class Meta: |
39 | - verbose_name = "Resource" | ||
40 | - verbose_name_plural = "Resources" | 40 | + verbose_name = "Resource" |
41 | + verbose_name_plural = "Resources" | ||
41 | 42 | ||
42 | def __str__(self): | 43 | def __str__(self): |
43 | pass | 44 | pass |