Skip to content

Commit 86e7702

Browse files
committed
Merge pull request #2845 from Siecje/docs
Specifying module for CurrentUserDefault()
2 parents 5cc0a3c + cbf17a5 commit 86e7702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/validators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ REST framework includes a couple of defaults that may be useful in this context.
172172
A default class that can be used to represent the current user. In order to use this, the 'request' must have been provided as part of the context dictionary when instantiating the serializer.
173173

174174
owner = serializers.HiddenField(
175-
default=CurrentUserDefault()
175+
default=serializers.CurrentUserDefault()
176176
)
177177

178178
#### CreateOnlyDefault

0 commit comments

Comments
 (0)