mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-25 23:50:01 +03:00
Setting name changed
This commit is contained in:
parent
60d7d005b4
commit
e1157525f9
|
@ -362,7 +362,7 @@ class ModelSerializerOptions(SerializerOptions):
|
|||
super(ModelSerializerOptions, self).__init__(meta)
|
||||
self.model = getattr(meta, 'model', None)
|
||||
self.read_only_fields = getattr(meta, 'read_only_fields', ())
|
||||
self.include_reverse_relations = getattr(meta, 'include_reverse_relations', api_settings.INCLUDE_REVERSE_RELATIONS)
|
||||
self.include_reverse_relations = getattr(meta, 'include_reverse_relations', api_settings.DEFAULT_INCLUDE_REVERSE_RELATIONS)
|
||||
|
||||
|
||||
class ModelSerializer(Serializer):
|
||||
|
|
|
@ -56,7 +56,7 @@ DEFAULTS = {
|
|||
},
|
||||
|
||||
# ModelSerializer
|
||||
'INCLUDE_REVERSE_RELATIONS': False,
|
||||
'DEFAULT_INCLUDE_REVERSE_RELATIONS': False,
|
||||
|
||||
# Pagination
|
||||
'PAGINATE_BY': None,
|
||||
|
|
Loading…
Reference in New Issue
Block a user