git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8685ea4aa4c0a9aa1d3d4acd7502104e8e7b94f2
[~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',)