Skip to content
Closed
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
3 changes: 3 additions & 0 deletions rest_framework/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ def run_validators(self, value):
errors = []
for validator in self.validators:
if hasattr(validator, 'set_context'):
# Need to make a copy, because validator instances often
# are initialised globally
validator = copy.deepcopy(validator)
validator.set_context(self)

try:
Expand Down