git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Removed "Artist" model and all references to it - unnecessary!
[~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',)