阅读背景:

Django:如何使用存储的模型实例作为表单选择?

来源:互联网 

I have a model which is essentially just a string (django.db.models.CharField). There will only be several instances of this model stored. How could I use those values as choices in a form?I have a model which is essentially just a stri




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: