Re: Including username in FileField upload_to path

2009-03-26 Thread Brian Neal
On Mar 26, 3:56 pm, Rajesh D wrote: > On Mar 26, 3:21 pm, IanSR wrote: > > > I've spent the last few hours trying variations on upload_to for my > > FileField path generator get_file_path(instance,filename) that will > > allow me to include

Re: Including username in FileField upload_to path

2009-03-26 Thread Rajesh D
On Mar 26, 3:21 pm, IanSR wrote: > I've spent the last few hours trying variations on upload_to for my > FileField path generator get_file_path(instance,filename) that will > allow me to include the username from the POST HttpRequest object. No > luck. Does

Including username in FileField upload_to path

2009-03-26 Thread IanSR
I've spent the last few hours trying variations on upload_to for my FileField path generator get_file_path(instance,filename) that will allow me to include the username from the POST HttpRequest object. No luck. Does anyone have any suggestions on how to do this? My instance does have a "user"