Stephen Mizell wrote: > I'm wanting to have upload_to for my file so it uploads to a different > directory for each user. This works when I use it with a newform, but > when I try to use the Django admin, it puts None as the username (I > want to base it on whatever username I select for "user"). I'm using > some middleware for the threadlocals to get the current user. > > Any ideas on how to make this work? > One solution you could adapt is available here, but its not remotely "nice"... http://www.warma.dk/blog/article/54/
Rob :) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---