Re: models.FileField() vs. forms.FileField()

2008-12-11 Thread Alex Koshelev
models.FileField realy requires `upload_to` param. And it can be callable with `instance` argument [1]. Using this feature you can generate upload path by the instance fields. [1]: http://docs.djangoproject.com/en/dev/ref/models/fields/#filefield On Thu, Dec 11, 2008 at 13:47, Alan <[EMAIL PROTEC

models.FileField() vs. forms.FileField()

2008-12-11 Thread Alan
Hello there! So, I am trying to build a model and from it build a form. I have something like: class Job(models.Model): juser = models.CharField(max_length=40) jname = models.CharField(max_length=255) title = models.CharField(max_length=255, null=True, blank=True) file = models