limodou wrote: >>Fields can create multiple FormFields. > > > So you mean Fields is not the same as FormFields, and the splited > FormFields can be combine again as auto saving to DB? But if I want to > manually create a form in template, what rule should I followed with ? > Is there some document? >
This isn't very well documented right now. See "http://www.djangoproject.com/documentation/model_api/", under DateTimeField: "the admin represents this as two <input type="text"> fields, with JavaScript shortcuts. " It should probably be mentioned that this is not just in the admin, but also in every automatically created manipulator. >>This is why iterating over the >>FormFields is not going to get you very satisfactory results for >>autogenerating a form. >> >>If you wish to autogenerate a form consistently, you can take a look at >>how it is done by the admin in the new-admin branch. However, this part >>is not yet documented and won't be until the API is fully baked. (Post >>core fields removal.) >> >>Robert >> > > > Thanks. > > -- > I like python! > My Blog: http://www.donews.net/limodou > NewEdit Maillist: http://groups.google.com/group/NewEdit >