Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix field.context
  • Loading branch information
lezeroq committed Aug 28, 2017
commit 0d5a1c1ead50edc8857d710bc58cad8355b0d664
2 changes: 1 addition & 1 deletion rest_framework_dyn_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, *args, **kwargs):
for field_name, field_name in self.fields.items():
# assigning parent context to allow child serializers to update their fields
# later
field_name.context = self.context
field_name._context = self.context
else:
self.limit_fields = False
self.request_all_allowed_fields()
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
envlist = py{27,35}-django{9,10}-drf{34,35,36}
envlist = py{27,35}-django{9,10,11}-drf{34,35,36}

[testenv]
envlist = py{27,35}-django{9,10}-drf{34,35,36}
envlist = py{27,35}-django{9,10,11}-drf{34,35,36}

deps =
django9: Django>=1.9,<1.10
django10: Django>=1.10,<1.11
django11: Django>=1.11,<1.12
drf34: djangorestframework>=3.4.0,<3.5.0
drf35: djangorestframework>=3.5.0,<3.6.0
drf36: djangorestframework>=3.6.0,<3.7.0
Expand Down