Hotel/hotel/rooms/forms.py

16 lines
362 B
Python

from django.forms import ModelForm
from django.utils.translation import gettext_lazy as _
from .models import *
from django import forms
class ClientForm(ModelForm):
class Meta:
model = Client
fields = '__all__'
labels = {
'id_number': _('Numer dowodu: '),
'name': _('Imię: '),
'surname': _('Nazwisko: ')
}