Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
e6041f9c
Commit
e6041f9c
authored
Dec 23, 2014
by
Kevin Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2348 from theengineear/compress-invalid-template
Compress invalid template
parents
2645a329
35768344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
rest_framework/templates/rest_framework/inline/checkbox_multiple.html
+1
-1
rest_framework/templates/rest_framework/vertical/list_fieldset.html
+0
-4
No files found.
rest_framework/templates/rest_framework/inline/checkbox_multiple.html
View file @
e6041f9c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<input
type=
"checkbox"
name=
"{{
rest_framework/
field.name }}"
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
checked
{%
endif
%}
>
<input
type=
"checkbox"
name=
"{{ field.name }}"
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
checked
{%
endif
%}
>
{{ text }}
{{ text }}
</label>
</label>
</div>
</div>
...
...
rest_framework/templates/rest_framework/vertical/list_fieldset.html
View file @
e6041f9c
<fieldset>
<fieldset>
{% if field.label %}
<legend
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</legend>
{% endif %}
{% if field.label %}
<legend
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</legend>
{% endif %}
<!-- {% if field.label %}<legend {% if style.hide_label %}class="sr-only"{% endif %}>{{ field.label }}</legend>{% endif %}
{% for field_item in field.value.field_items.values() %}
{{ renderer.render_field(field_item, layout=layout) }}
{% endfor %} -->
<p>
Lists are not currently supported in HTML input.
</p>
<p>
Lists are not currently supported in HTML input.
</p>
</fieldset>
</fieldset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment