Editing a sandwich works, except for the ingredients.
[~kgodey/maayanwich.git] / templates / editsandwich.html
index f70bc85..912b6bb 100644 (file)
@@ -29,7 +29,7 @@ $(function()
 {% block content %}
        <h1 class="pagetitle">Edit sandwich</h1>
        <span class="formspan">
-       <form enctype="multipart/form-data" action="{% url add_sandwich %}" method="post" class="cssform">
+       <form enctype="multipart/form-data" action="{% url edit_sandwich slug=s.slug %}" method="post" class="cssform">
        {{ sform.as_p }}
        {% if s.picture %}
                <img src="{{ s.picture.url }}" width=400px vspace=10px>