Example of printing choice object

This commit is contained in:
Konsta Vesterinen
2013-10-24 15:20:42 +03:00
parent e2b43e5d02
commit dab18b2b49

View File

@@ -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