dynamicweb/datacenterlight/forms.py

20 lines
426 B
Python
Raw Permalink Normal View History

2016-12-20 23:05:20 +00:00
from django import forms
from .models import BetaAccess, BetaAccessVM
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 BetaAccessVMForm(forms.ModelForm):
# type = forms.CharField(widget=forms.EmailInput())
# class Meta:
# fields = ['email']
# model = BetaAccessVM