Sandwich form actually adds things to the database now!
[~kgodey/maayanwich.git] / templates / sandwich.html
index 3ae0f3e..32a85ed 100644 (file)
@@ -3,8 +3,8 @@
                <title>Add a sandwich!</title></head>
        <body>
                <h1>Add a new sandwich</h1>
-               <form action="/addsandwich/" method="post">
-               {{ form.as_p }}
+               <form enctype="multipart/form-data" action="/addsandwich/" method="post">
+               {{ sform.as_p }}
                <input type="submit" value="Submit" />
                </form>
        </body>