From dab18b2b49f1f43148940505a3ddee65ce9acd2e Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Thu, 24 Oct 2013 15:20:42 +0300 Subject: [PATCH] Example of printing choice object --- docs/index.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 17c86ac..afbeceb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -103,8 +103,7 @@ ChoiceType is very useful when the rendered values change based on user's locale user = User(type=u'admin') user.type # Choice(type='admin', value=u'Admin') - - + print user.type # u'Admin' ColorType