Skip to content

Commit c4f9d43

Browse files
authored
Update 3.11-announcement.md (#9227)
1 parent 21bb21b commit c4f9d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/community/3.11-announcement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ In some circumstances a Validator class or a Default class may need to access th
6464
* Uniqueness validators need to be able to determine the name of the field to which they are applied, in order to run an appropriate database query.
6565
* The `CurrentUserDefault` needs to be able to determine the context with which the serializer was instantiated, in order to return the current user instance.
6666

67-
Previous our approach to this was that implementations could include a `set_context` method, which would be called prior to validation. However this approach had issues with potential race conditions. We have now move this approach into a pending deprecation state. It will continue to function, but will be escalated to a deprecated state in 3.12, and removed entirely in 3.13.
67+
Our previous approach to this was that implementations could include a `set_context` method, which would be called prior to validation. However this approach had issues with potential race conditions. We have now move this approach into a pending deprecation state. It will continue to function, but will be escalated to a deprecated state in 3.12, and removed entirely in 3.13.
6868

6969
Instead, validators or defaults which require the serializer context, should include a `requires_context = True` attribute on the class.
7070

0 commit comments

Comments
 (0)