1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Modified form action to preserve query parameters

This commit is contained in:
Jeremy Stretch
2017-09-01 12:25:57 -04:00
parent 372e9335b1
commit f5c265b7b5
5 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
{% block content %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form action="." method="post" class="form">
<form action="" method="post" class="form">
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}

View File

@ -23,7 +23,7 @@
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form action="." method="post" class="form">
<form action="" method="post" class="form">
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}

View File

@ -4,7 +4,7 @@
{% block content %}
<h1>{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}</h1>
<form action="." method="post" class="form form-horizontal">
<form action="" method="post" class="form form-horizontal">
{% csrf_token %}
{% if request.POST.return_url %}
<input type="hidden" name="return_url" value="{{ request.POST.return_url }}" />

View File

@ -2,7 +2,7 @@
{% load form_helpers %}
{% block content %}
<form action="." method="post" enctype="multipart/form-data" class="form form-horizontal">
<form action="" method="post" enctype="multipart/form-data" class="form form-horizontal">
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}

View File

@ -15,7 +15,7 @@
</div>
</div>
{% endif %}
<form action="." method="post" class="form">
<form action="" method="post" class="form">
{% csrf_token %}
{% render_form form %}
<div class="form-group">