Example of printing choice object
This commit is contained in:
@@ -103,8 +103,7 @@ ChoiceType is very useful when the rendered values change based on user's locale
|
|||||||
user = User(type=u'admin')
|
user = User(type=u'admin')
|
||||||
user.type # Choice(type='admin', value=u'Admin')
|
user.type # Choice(type='admin', value=u'Admin')
|
||||||
|
|
||||||
|
print user.type # u'Admin'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ColorType
|
ColorType
|
||||||
|
Reference in New Issue
Block a user