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