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" field that saves the request.user ID (as a
ForeignKey), however it appears that this is not yet available when
the callback for upload_to is run.

Cheers,

Ian
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to