dynamicweb/datacenterlight/forms.py

27 lines
550 B
Python
Raw Normal View History

2016-12-20 23:05:20 +00:00
from django import forms
from .models import BetaAccess, ContactUs
2016-12-20 23:05:20 +00:00
class BetaAccessForm(forms.ModelForm):
email = forms.CharField(widget=forms.EmailInput())
class Meta:
fields = ['name', 'email']
2016-12-20 23:05:20 +00:00
model = BetaAccess
class ContactForm(forms.ModelForm):
class Meta:
fields = ['name', 'email', 'message']
model = ContactUs
# class BetaAccessVMForm(forms.ModelForm):
# type = forms.CharField(widget=forms.EmailInput())
# class Meta:
# fields = ['email']
# model = BetaAccessVM