阅读背景:

在Django中序列化ModelForm对象的最佳方法是什么?

来源:互联网 

I am using Django and the Google Web Toolkit (GWT) for my current project. I would like to pass a ModelForm instance to GWT via an Http response so that I can "chop" it up and render it as I please. My goal is to keep the form in sync with changes to my models.py file, yet increase control I have over the look of the form. However, the django classes for serialization, serializers and simplejson, cannot serialize a ModelForm. Neither can cPickle. What are my alternatives? I am using Django and the Google Web Toolkit (G




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

分享到: