1. Yorgos Pagles
  2. mezzanine_widgets

Commits

Yorgos Pagles  committed ebb20fa

Fixed urls

  • Participants
  • Parent commits b780a2f
  • Branches master

Comments (0)

Files changed (3)

File widget/templates/widget/holder.html

View file
             </span>
             </div>
             {# endif #}
-        <a style="position: absolute;top: 0;right: 0;" id="dw-{{ w.widget.id }}" class="widget-delete-link"  href="{% url delete_widget w.widget.id %}?next={{request.path}}"><i class="icon-remove"></i></a>
+        <a style="position: absolute;top: 0;right: 0;" id="dw-{{ w.widget.id }}" class="widget-delete-link"  href="{% url 'delete_widget' w.widget.id %}?next={{request.path}}"><i class="icon-remove"></i></a>
         {% endif %}
         <div id="{{ w.meta.name|cut:" "|force_escape|lower}}-widget-content">
             {{ w.content|safe }}

File widget/templates/widget/list.html

View file
 {% with w.0 as widget %}
 {% spaceless %}
 <li>
-    <a href="{% url create_widget_class page_id widget|lower %}">{{ w.1 }}</a>
+    <a href="{% url 'create_widget_class' page_id widget|lower %}">{{ w.1 }}</a>
 </li>
 {% endspaceless %}
 {% endwith %}

File widget/templates/widget/widget_form.html

View file
 <form style="display:none;" 
     class="popup-form frontend-admin-form form-vertical" 
     method="post"
-    action="{% url widget_list %}" id="widget-form"
+    action="{% url 'widget_list' %}" id="widget-form"
     {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
     {% csrf_token %}
     <fieldset id="widget-list" style="border:none;">