Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
ap4-HW-64-issatayev-adlet
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Isataev Adlet
ap4-HW-64-issatayev-adlet
Commits
3d7854f4
Commit
3d7854f4
authored
Dec 02, 2021
by
Isataev Adlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправил лейблы даты рождения и дату мероприятия, чтобы переводились
parent
ed36ec05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
forms.py
source/accounts/forms.py
+1
-1
forms.py
source/webapp/forms.py
+2
-1
No files found.
source/accounts/forms.py
View file @
3d7854f4
...
@@ -48,7 +48,7 @@ class UserChangeForm(forms.ModelForm):
...
@@ -48,7 +48,7 @@ class UserChangeForm(forms.ModelForm):
class
ProfileChangeForm
(
forms
.
ModelForm
):
class
ProfileChangeForm
(
forms
.
ModelForm
):
birth_date
=
forms
.
DateField
(
widget
=
forms
.
TextInput
(
attrs
=
{
'placeholder'
:
'YYYY-MM-DD'
}))
birth_date
=
forms
.
DateField
(
widget
=
forms
.
TextInput
(
attrs
=
{
'placeholder'
:
'YYYY-MM-DD'
})
,
label
=
_
(
"BirthDate"
)
)
class
Meta
:
class
Meta
:
model
=
Profile
model
=
Profile
...
...
source/webapp/forms.py
View file @
3d7854f4
...
@@ -5,7 +5,8 @@ from django.utils.translation import gettext_lazy as _
...
@@ -5,7 +5,8 @@ from django.utils.translation import gettext_lazy as _
class
EventForm
(
forms
.
ModelForm
):
class
EventForm
(
forms
.
ModelForm
):
date
=
forms
.
DateTimeField
(
date
=
forms
.
DateTimeField
(
widget
=
forms
.
TextInput
(
attrs
=
{
'placeholder'
:
'YYYY-MM-DD HH-MM-SS'
,
'type'
:
'datetime-local'
}))
widget
=
forms
.
TextInput
(
attrs
=
{
'placeholder'
:
'YYYY-MM-DD HH-MM-SS'
,
'type'
:
'datetime-local'
}),
label
=
_
(
"DateEvent"
))
class
Meta
:
class
Meta
:
model
=
Event
model
=
Event
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment