diff options
| author | Tom Christie | 2014-10-01 21:35:27 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-10-01 21:35:27 +0100 |
| commit | ffc6aa3abcb0f823b43b63db1666913565e6f934 (patch) | |
| tree | 353e6e03d370dbf1647a73c8fa3edb7f9562e6b4 /rest_framework/templates | |
| parent | c171fa21ac62538331755524057d2435f33ec8a5 (diff) | |
| download | django-rest-framework-ffc6aa3abcb0f823b43b63db1666913565e6f934.tar.bz2 | |
More forms support
Diffstat (limited to 'rest_framework/templates')
| -rw-r--r-- | rest_framework/templates/rest_framework/fields/vertical/select_multiple.html | 2 | ||||
| -rw-r--r-- | rest_framework/templates/rest_framework/form.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/templates/rest_framework/fields/vertical/select_multiple.html b/rest_framework/templates/rest_framework/fields/vertical/select_multiple.html index f0fa418b..00b25b4b 100644 --- a/rest_framework/templates/rest_framework/fields/vertical/select_multiple.html +++ b/rest_framework/templates/rest_framework/fields/vertical/select_multiple.html @@ -1,7 +1,7 @@ <div class="form-group"> {% include "rest_framework/fields/vertical/label.html" %} <select multiple class="form-control" name="{{ field.field_name }}"> - {% for key, text in field.choices.items() %} + {% for key, text in field.choices.items %} <option value="{{ key }}" {% if key in value %}selected{% endif %}>{{ text }}</option> {% endfor %} </select> diff --git a/rest_framework/templates/rest_framework/form.html b/rest_framework/templates/rest_framework/form.html index 64b1b0bc..658aa293 100644 --- a/rest_framework/templates/rest_framework/form.html +++ b/rest_framework/templates/rest_framework/form.html @@ -9,7 +9,7 @@ <div class="well"> {% load rest_framework %} -<form {% if layout == "inline" %}class="form-inline"{% elif layout == "horizontal" %}class="form-horizontal"{% endif %} role="form" action="" method="POST"> +<form {% if layout == "inline" %}class="form-inline"{% elif layout == "horizontal" %}class="form-horizontal"{% endif %} role="form" action="." method="POST"> {% csrf_token %} {% for field, value, errors in form %} {% render_field field value errors layout=layout renderer=renderer %} |
