Started writing views and URLS - not done.
[~kgodey/maayanwich.git] / forms.py
1 from django.forms import ModelForm
2 from models import Sandwich, Ingredient, Artist
3
4
5 class SandwichForm(ModelForm):
6         
7         class Meta:
8                 model = Sandwich
9                 exclude = ('slug',)
10
11
12 class IngredientForm(ModelForm):
13
14         class Meta:
15                 model = Ingredient
16                 exclude = ('slug',)
17
18
19 class ArtistForm(ModelForm):
20
21         class Meta:
22                 model = Artist
23                 exclude = ('slug',)