Edit sandwich method added - not completely working yet. Adds a new sandwich instead...
[~kgodey/maayanwich.git] / forms.py
index a2c5fc8..e471c2a 100644 (file)
--- a/forms.py
+++ b/forms.py
@@ -8,7 +8,8 @@ class SandwichForm(ModelForm):
        
        class Meta:
                model = Sandwich
-               exclude = ('slug', 'user')
+               exclude = ('slug', 'user', 'ingredients')
+               fields = ('adjective', 'date_made', 'notes', 'picture')
 
 
 class IngredientForm(ModelForm):