Commit 86e7702f by Xavier Ordoquy

Merge pull request #2845 from Siecje/docs

Specifying module for CurrentUserDefault()
parents 5cc0a3c2 cbf17a5f
......@@ -172,7 +172,7 @@ REST framework includes a couple of defaults that may be useful in this context.
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.
owner = serializers.HiddenField(
default=CurrentUserDefault()
default=serializers.CurrentUserDefault()
)
#### CreateOnlyDefault
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment