1 from django.forms import ModelForm
2 from models import Sandwich, Ingredient
3 from django.contrib.auth.models import User
4 from django import forms
7 class SandwichForm(ModelForm):
14 class IngredientForm(ModelForm):
21 class NewUserForm(forms.Form):
22 first_name = forms.CharField()
23 last_name = forms.CharField()
24 email = forms.EmailField()
25 username = forms.CharField()
26 password = forms.CharField(widget=forms.PasswordInput)
27 confirm_password = forms.CharField(widget=forms.PasswordInput)