Hotel/hotel/rooms/forms.py
2019-01-22 20:28:51 +01:00

22 lines
559 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 = {
<<<<<<< HEAD
'id_number': 'Numer dowodu: ',
'name': 'Imię: ',
'surname': 'Nazwisko: '
=======
'id_number': _('Numer dowodu '),
'name': _('Imię '),
'surname': _('Nazwisko ')
>>>>>>> 79787db1a58d1e3a363982eba9f484be10a87aaf
}