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 | 6 | |
7 | 7 | password = forms.CharField(label='Senha', widget=forms.PasswordInput) |
8 | 8 | password2 = forms.CharField(label = 'Confirmacao de Senha', widget = forms.PasswordInput) |
9 | - | |
9 | + birth_date = forms.DateField(widget=forms.SelectDateWidget()) | |
10 | 10 | MIN_LENGTH = 8 |
11 | 11 | |
12 | 12 | def clean_password(self): |
... | ... | @@ -42,4 +42,4 @@ class RegisterUserForm(forms.ModelForm): |
42 | 42 | class Meta: |
43 | 43 | model = User |
44 | 44 | # exclude = ['is_staff', 'is_active'] |
45 | - fields = ['username', 'name', 'email', 'city', 'state', 'birth_date', 'gender', 'cpf', 'phone', 'image'] | |
46 | 45 | \ No newline at end of file |
46 | + fields = ['username', 'name', 'email', 'city', 'state', 'gender', 'cpf', 'phone', 'image'] | |
47 | 47 | \ No newline at end of file | ... | ... |
core/models.py
... | ... | @@ -35,9 +35,10 @@ class Resource(models.Model): |
35 | 35 | |
36 | 36 | name = models.CharField(_('Name'), max_length =100) |
37 | 37 | created_date = models.DateField(_('Created Date'), auto_now_add=True) |
38 | + | |
38 | 39 | class Meta: |
39 | - verbose_name = "Resource" | |
40 | - verbose_name_plural = "Resources" | |
40 | + verbose_name = "Resource" | |
41 | + verbose_name_plural = "Resources" | |
41 | 42 | |
42 | 43 | def __str__(self): |
43 | 44 | pass | ... | ... |