git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c5a5ae63a55691b14b9ade168243867c39a685de
[~kgodey/maayanwich.git]
/
forms.py
1
from django.forms import ModelForm
2
from models import Sandwich, Ingredient
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',)