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
a02707e1
Commit
a02707e1
authored
Oct 03, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks
parent
92b091ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
rest_framework/renderers.py
+1
-1
rest_framework/templates/rest_framework/base.html
+2
-2
No files found.
rest_framework/renderers.py
View file @
a02707e1
...
...
@@ -247,7 +247,7 @@ class DocumentingHTMLRenderer(BaseRenderer):
serializers
.
EmailField
:
forms
.
EmailField
,
serializers
.
CharField
:
forms
.
CharField
,
serializers
.
BooleanField
:
forms
.
BooleanField
,
serializers
.
PrimaryKeyRelatedField
:
forms
.
ChoiceField
,
serializers
.
PrimaryKeyRelatedField
:
forms
.
Model
ChoiceField
,
serializers
.
ManyPrimaryKeyRelatedField
:
forms
.
ModelMultipleChoiceField
}
...
...
rest_framework/templates/rest_framework/base.html
View file @
a02707e1
...
...
@@ -132,7 +132,7 @@
<div
class=
"control-group {% if field.errors %}error{% endif %}"
>
{{ field.label_tag|add_class:"control-label" }}
<div
class=
"controls"
>
{{ field|add_class:"input-x
x
large" }}
{{ field|add_class:"input-xlarge" }}
<span
class=
"help-inline"
>
{{ field.help_text }}
</span>
{{ field.errors|add_class:"help-block" }}
</div>
...
...
@@ -158,7 +158,7 @@
<div
class=
"control-group {% if field.errors %}error{% endif %}"
>
{{ field.label_tag|add_class:"control-label" }}
<div
class=
"controls"
>
{{ field|add_class:"input-x
x
large" }}
{{ field|add_class:"input-xlarge" }}
<span
class=
'help-inline'
>
{{ field.help_text }}
</span>
{{ field.errors|add_class:"help-block" }}
</div>
...
...
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