Kaynağa Gözat

Provide absolute URL for object search form

jeremystretch 4 yıl önce
ebeveyn
işleme
2b0ccf3acd
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      netbox/templates/generic/object.html

+ 1 - 2
netbox/templates/generic/object.html

@@ -13,8 +13,7 @@
       </ol>
     </div>
     <div class="col-sm-4 col-md-3">
-      {# TODO: Provide absolute search URL #}
-      <form action="../" method="get">
+      <form action="{% url object|viewname:'list' %}" method="get">
         <div class="input-group">
           <input type="text" name="q" class="form-control" placeholder="Search" />
           <span class="input-group-btn">