from django import forms
from django.contrib.admin import widgets
from .models import Event


class LoginForm(forms.Form):
    username = forms.CharField()
    password = forms.CharField(widget=forms.PasswordInput())


class EventForm(forms.ModelForm):
    class Meta:
        model = Event
        fields = (
            'title', 'description',
            'start_time', 'end_time',
            'image', 'place', 'point'
        )
        widgets = {
            'start_time': widgets.AdminSplitDateTime,
            'end_time': widgets.AdminSplitDateTime
        }

from django import forms
from django.contrib.admin import widgets
from .models import Event


class LoginForm(forms.Form):
    username = forms.CharField(label='Nazwa użytkownika');
    password = forms.CharField(label='Hasło', widget=forms.PasswordInput())


class EventForm(forms.ModelForm):
    class Meta:
        model = Event
        fields = (
            'title', 'description',
            'start_time', 'end_time',
            'image', 'place', 'point'
        )
        widgets = {
            'start_time': widgets.AdminSplitDateTime,
            'end_time': widgets.AdminSplitDateTime
        }

Use Polish lables in login form.
Use Polish lables in login form.

Signed-off-by: Mariusz Fik <e22610367d206dca7aa58af34ebf008b556228c5@fidano.pl>
