On 4/3/07, Stephen Mizell <[EMAIL PROTECTED]> wrote: > > > That line is executed exactly once, at the time the file is imported. So > > it is not dynamic in any way. > > > > (I seem to be saying that at least every other day here. It's normal > > Python behaviour, people. Please stop hoping it were otherwise!) > > Thanks for the help. I didn't call it dynamic, though. What are you > referring to?
Your suggested code implies that it be dynamic though. The models.FileField() line will only ever be executed one time. You're passing it the value get_current_user(), but that value only ever gets passed that one time. If it were "dynamic", then get_current_user() would get called everytime the FileField is accessed, which is what you wanted, but that's not the case. Hence Malcolm's comment :) Jay P --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---