Skip to content

Commit cbf17a5

Browse files
committed
Specifying module for CurrentUserDefault()
Prevents having to lookup the import
1 parent 5cc0a3c commit cbf17a5

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)