文件名称:django-good-choices:Django中“选择”的简单方便的方法
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-12 07:45:52
Python
django-good-choices Django中“选择”的简单方便的方法 例子: from django . db import models from django . utils . translation import ugettext_lazy as _ from good_choices import Choices class Order ( models . Model ): class Status ( Choices ): PLACED = 1 , _ ( 'Placed' ) PAID = 2 , _ ( 'Paid' ) SENT = 3 , _ ( 'Sent' ) DELIVERED = 4 , _ ( 'Delivered' ) product = models . Fo
【文件预览】:
django-good-choices-master
----good_choices.py(1KB)
----tests.py(944B)
----tox.ini(81B)
----LICENSE(1KB)
----setup.py(353B)
----README.md(725B)
----.gitignore(675B)