Re: Wierd FileField behavior

2009-02-02 Thread timc3
Show us the code for your view. But are you sending through the files in the POST each time? --~--~-~--~~~---~--~~ 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@goog

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
On Feb 3, 12:10 pm, Erwin Elling wrote: > It's probably not DrKayBee's view that's causing problems. Seems like > it's the adminviews. This was on the latest svn revision (9807). I went back to 9781 (which was still on my system for a previous project) and the problem seems not to exist here. Ha

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
> I went back to 9781 (which was still on my system for a previous > project) and the problem seems not to exist here. Haven't had the time > to dig into this any further, but maybe this helps someone else. Sorry, made a mistake; On 9781 the problem is still there. On 9084 (also quite randomly ch

Re: Wierd FileField behavior

2009-02-03 Thread thanhduclee
Cool, you saved my life On Feb 3, 10:50 pm, Ramiro Morales wrote: > On Tue, Feb 3, 2009 at 9:40 AM, Erwin Elling wrote: > > >> I went back to 9781 (which was still on my system for a previous > >> project) and the problem seems not to exist here. Haven't had the time > >> to dig into this any f

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
On Feb 2, 11:29 pm, timc3 wrote: > Show us the code for your view. But are you sending through the files > in the POST each time? It's probably not DrKayBee's view that's causing problems. Seems like it's the admin views. I have the same problem with a model with two filefields: When I edit and

Re: Wierd FileField behavior

2009-02-03 Thread Erwin Elling
> Revision 9766 introduced some changes related to file fields, can > you try to refine your tests and see if it is the one that broke > things in your case and report back please? I tried both 9765 and 9766. Indeed, in 9765 I don't come accross the problems mentioned. In 9766 I do. Files that w

Re: Wierd FileField behavior

2009-02-03 Thread Ramiro Morales
On Tue, Feb 3, 2009 at 9:40 AM, Erwin Elling wrote: > >> I went back to 9781 (which was still on my system for a previous >> project) and the problem seems not to exist here. Haven't had the time >> to dig into this any further, but maybe this helps someone else. > > Sorry, made a mistake; On 978

Re: Wierd FileField behavior

2009-02-12 Thread numshub
> I tried both 9765 and 9766. > Indeed, in 9765 I don't come accross the problems mentioned. In 9766 I > do. > > Files that were changed between these versions (by Jacob): > db/models/fields/files.py > core/files/base.py > > Erwin I have the same problem too. 9765 works fine. 9766 doesn't. I'm go

Re: Wierd FileField behavior

2009-02-12 Thread numshub
Had a look at diff from 9765 and 9766. I think thata changes in release 9766 in db/models/fields/files.py somewhow broke admin site. 9766 address ticket #10044 allowing direct assignment of File object. It extends FileField model capability so I think we should focus to solve the issue on admin si