git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Login view works! Forms have been reshuffled (Django apparently comes with built...
[~kgodey/maayanwich.git]
/
forms.py
1
from django.forms import ModelForm
2
from models import Sandwich, Ingredient
3
from django.contrib.auth.models import User
4
from django import forms
5
6
7
class SandwichForm(ModelForm):
8
9
class Meta:
10
model = Sandwich
11
exclude = ('slug',)
12
13
14
class IngredientForm(ModelForm):
15
16
class Meta:
17
model = Ingredient
18
exclude = ('slug',)