> Just a suggestion -- if the admin site does the sort of thing you want, then
> taking a look at the admin code would probably be helpful in figuring out
> how to do it. Sorry I don't know offhand without doing more digging than I
> have time for what it does, exactly, but if it is showing a
On Tue, Jan 27, 2009 at 5:48 PM, Rodrigo C. wrote:
>
> > This isn't a Django issue. It's a standard property of browsers: you
> > can't set an initial value for file input fields. This is a security
> > measure, to stop malicious pages uploading files from your hard drive
>
Hi Malcolm, thanks for your reply.
> So, perhaps you could give a small, reduced to the minimum, example of
> how you're setting all this up. Maybe it's a problem in inline formsets,
> or maybe it's an oversight in your code. At the moment, hard to tell.
>
I included the View and Model in my
On Tue, 2009-01-27 at 14:48 -0800, Rodrigo C. wrote:
> > This isn't a Django issue. It's a standard property of browsers: you
> > can't set an initial value for file input fields. This is a security
> > measure, to stop malicious pages uploading files from your hard drive
> > without your
> This isn't a Django issue. It's a standard property of browsers: you
> can't set an initial value for file input fields. This is a security
> measure, to stop malicious pages uploading files from your hard drive
> without your explicit instruction.
I see. If there's no way to set the initial
On Jan 27, 9:11 pm, "Rodrigo C." wrote:
> I have model that represents a file, and has a FileField, that I am
> rendering via an Inline Formset. When a user fills in the form it gets
> saved with no problems.
> However, I want the users to be able to continue editing the
I have model that represents a file, and has a FileField, that I am
rendering via an Inline Formset. When a user fills in the form it gets
saved with no problems.
However, I want the users to be able to continue editing the file, but
when I re-display the newly created object, the data for the
7 matches
Mail list logo