X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/c5d383841dd8427e4f673c6fb9e4119085fb6fbf..2cc7186840aa440de15f8926c3069c9fcc8cdf10:/forms.py diff --git a/forms.py b/forms.py new file mode 100644 index 0000000..8685ea4 --- /dev/null +++ b/forms.py @@ -0,0 +1,23 @@ +from django.forms import ModelForm +from models import Sandwich, Ingredient, Artist + + +class SandwichForm(ModelForm): + + class Meta: + model = Sandwich + exclude = ('slug',) + + +class IngredientForm(ModelForm): + + class Meta: + model = Ingredient + exclude = ('slug',) + + +class ArtistForm(ModelForm): + + class Meta: + model = Artist + exclude = ('slug',) \ No newline at end of file