From cbf17a5ffeacf432c6b378488f8d498c9a02524b Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Mon, 20 Apr 2015 19:14:58 -0400 Subject: [PATCH] Specifying module for CurrentUserDefault() Prevents having to lookup the import --- docs/api-guide/validators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/validators.md b/docs/api-guide/validators.md index 40ad48570..afee2e5fd 100644 --- a/docs/api-guide/validators.md +++ b/docs/api-guide/validators.md @@ -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