Hi, I was wondering if it is possible, and if so then how, to have a context-sensitive 'upload_to' parameter set for FileField.
Let's say, I have the following model concept: class MyModel(models.Model): folder = models.CharField(maxlength = 8) file_html = models.FileField(upload_to = '%s/html' % x) file_pdf = models.FielField(upload_to = '%s/pdf' % x) How could I set the 'x' variable to be the same as 'folder' before the object is saved? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---