On Tue, 2008-01-08 at 18:40 -0700, Brian Rosner wrote: [...]
> To write a patch I created a new widget named BoundFileInput that > inherits from MultiWidget to display the FileInput and HiddenInput > widgets. The FileInput widget works the same as it does now. The > HiddenInput widget maintains the data that came from the model. As I > understand it this is how it used to work in oldforms, but perhaps just > the admin in trunk. I'd prefer that we worked out a way to get the initial data passed through. Sticking this in a hidden field would mean that you pretty much always have to include some kind of security hash as well to avoid the hidden field value being changed. This is why Russell's improvements for file uploading in newforms were a slightly better design. Regards, Malcolm -- Plan to be spontaneous - tomorrow. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
