JourneyJoker/auction/forms.py

19 lines
642 B
Python
Raw Normal View History

from django import forms
from django_countries.fields import CountryField
from .models import Inquiry
class InquiryProcessForm(forms.ModelForm):
first_name = forms.CharField(max_length=64, required=True)
last_name = forms.CharField(max_length=64, required=True)
street = forms.CharField(max_length=64, required=True)
city = forms.CharField(max_length=64, required=True)
zip = forms.CharField(max_length=16)
state = forms.CharField(max_length=64)
country = CountryField().formfield(required=True)
terms = forms.BooleanField(required=True)
class Meta:
model = Inquiry
2021-04-18 14:46:57 +00:00
fields = ["gateway"]