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
57b0e84b
Commit
57b0e84b
authored
Mar 17, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1472 from estebistec/ref-compound-fields
Serializer fields section for 3rd-party packages
parents
c4459167
c779dce3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
docs/api-guide/fields.md
+8
-0
No files found.
docs/api-guide/fields.md
View file @
57b0e84b
...
@@ -347,6 +347,14 @@ As an example, let's create a field that can be used represent the class name of
...
@@ -347,6 +347,14 @@ As an example, let's create a field that can be used represent the class name of
"""
"""
return obj.__class__
return obj.__class__
# More fields from 3rd-party packages
## [drf-compound-fields](http://drf-compound-fields.readthedocs.org)
Provides "compound" serializer fields, such as lists of simple values, which can be described by
other fields rather than serializers with the
`many=True`
option. Also provided are fields for
typed dictionaries and values that can be either a specific type or a list of items of that type.
[
cite
]:
https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.cleaned_data
[
cite
]:
https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.cleaned_data
[
FILE_UPLOAD_HANDLERS
]:
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_HANDLERS
[
FILE_UPLOAD_HANDLERS
]:
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_HANDLERS
[
ecma262
]:
http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
[
ecma262
]:
http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
...
...
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