choice property in google app engine

后端 未结 2 1738
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 00:40

platform: django 1.0, google app engine, app-engine-patch , python 2.5.4

i am tring to use the choices attribute as i always have been using in django website

<
2条回答
  •  孤街浪徒
    2021-01-17 01:25

    As Paolo says, this is not how the choices parameter works in App Engine models. It's perfectly possible to write your own custom Properties that behave however you want, though. Here's an example from the cookbook of one that's similar: EnumProperty.

提交回复
热议问题