Commit 3d7854f4 authored by Isataev Adlet's avatar Isataev Adlet

Исправил лейблы даты рождения и дату мероприятия, чтобы переводились

parent ed36ec05
......@@ -48,7 +48,7 @@ class UserChangeForm(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:
model = Profile
......
......@@ -5,7 +5,8 @@ from django.utils.translation import gettext_lazy as _
class EventForm(forms.ModelForm):
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:
model = Event
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment