On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote: > If I've got a form_for_model but I've excluded some fields from it > entirely (because I don't want people to be able to find the values in > hidden fields, or even try to submit them), how do I set values back > for those fields before saving the data?
I'd suggest ditching form_for_model and writing a custom form; it's extremely easy to do that (as opposed to trying to shoehorn things into form_for_model), and really any time you need customized behavior you should be tailoring a form exactly to suit; anything else is asking for pain ;) -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---