Docs updated

This commit is contained in:
eofs 2013-01-15 12:57:15 +02:00
parent e1157525f9
commit 6bcac18e7e
2 changed files with 7 additions and 1 deletions

View File

@ -245,7 +245,7 @@ All the relational fields may be used for any relationship or reverse relationsh
## Reverse relational fields
By default reverse relational fields are not displayed when ModelSerializer is used. You can control this behavior by using `INCLUDE_REVERSE_RELATIONS` setting.
By default reverse relational fields are not displayed when ModelSerializer is used. You can control this behavior by using `DEFAULT_INCLUDE_REVERSE_RELATIONS` setting.
Besides global setting you can also use model specific setting:

View File

@ -96,6 +96,12 @@ Default: `rest_framework.serializers.ModelSerializer`
Default: `rest_framework.pagination.PaginationSerializer`
## DEFAULT_INCLUDE_REVERSE_RELATIONS
If set to `True`, ModelSerializer will display reverse relational fields from other models.
Default: `False`
## FILTER_BACKEND
The filter backend class that should be used for generic filtering. If set to `None` then generic filtering is disabled.