from django import forms

from .models import CarNameModel, CarModel


class CarNameForm(forms.ModelForm):
    lang = forms.ChoiceField(choices=CarNameModel.LANGUAGES)

    class Meta():
        model = CarNameModel
        fields = ('lang', 'name')


class CarForm(forms.ModelForm):
    class Meta():
        model = CarModel
        fields = ('year',)

c11af93cc87465fd92a3092a535c09cb54231e6e
<mask token>

<mask token>


class CarNameForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = CarNameModel
        fields = 'lang', 'name'


class CarForm(forms.ModelForm):


    class Meta:
        model = CarModel
        fields = 'year',

<mask token>


class CarNameForm(forms.ModelForm):
    lang = forms.ChoiceField(choices=CarNameModel.LANGUAGES)


    class Meta:
        model = CarNameModel
        fields = 'lang', 'name'


class CarForm(forms.ModelForm):


    class Meta:
        model = CarModel
        fields = 'year',

from django import forms
from .models import CarNameModel, CarModel


class CarNameForm(forms.ModelForm):
    lang = forms.ChoiceField(choices=CarNameModel.LANGUAGES)


    class Meta:
        model = CarNameModel
        fields = 'lang', 'name'


class CarForm(forms.ModelForm):


    class Meta:
        model = CarModel
        fields = 'year',

from django import forms

from .models import CarNameModel, CarModel


class CarNameForm(forms.ModelForm):
    lang = forms.ChoiceField(choices=CarNameModel.LANGUAGES)

    class Meta():
        model = CarNameModel
        fields = ('lang', 'name')


class CarForm(forms.ModelForm):
    class Meta():
        model = CarModel
        fields = ('year',)
