from django import forms
from .models import Order

class OrderCreateForm(forms.ModelForm):
    class Meta:
        model = Order
        fields = ['first_name', 'last_name', 'email', 'address',
                  'postal_code', 'city']
        labels = {'first_name':('Imię'),
                    'last_name':('Nazwisko'),
                    'email':('E-mail'),
                    'address':('Adres'),
                    'postal_code':('Kod pocztowy'),
                    'city':('Miasto')}

bb85b1aca038824266dcd1168c5b6a17096f3e14
<mask token>

<mask token>


class OrderCreateForm(forms.ModelForm):


    class Meta:
        model = Order
        fields = ['first_name', 'last_name', 'email', 'address',
            'postal_code', 'city']
        labels = {'first_name': 'Imię', 'last_name': 'Nazwisko', 'email':
            'E-mail', 'address': 'Adres', 'postal_code': 'Kod pocztowy',
            'city': 'Miasto'}

from django import forms
from .models import Order


class OrderCreateForm(forms.ModelForm):


    class Meta:
        model = Order
        fields = ['first_name', 'last_name', 'email', 'address',
            'postal_code', 'city']
        labels = {'first_name': 'Imię', 'last_name': 'Nazwisko', 'email':
            'E-mail', 'address': 'Adres', 'postal_code': 'Kod pocztowy',
            'city': 'Miasto'}

from django import forms
from .models import Order

class OrderCreateForm(forms.ModelForm):
    class Meta:
        model = Order
        fields = ['first_name', 'last_name', 'email', 'address',
                  'postal_code', 'city']
        labels = {'first_name':('Imię'),
                    'last_name':('Nazwisko'),
                    'email':('E-mail'),
                    'address':('Adres'),
                    'postal_code':('Kod pocztowy'),
                    'city':('Miasto')}
