Re: Assigning a file manually to a model FileField

2009-03-31 Thread Karen Tracey
On Tue, Mar 31, 2009 at 10:55 AM, Matias Surdi wrote: > > I have the following model: > > class Document(BaseModel): > name = models.CharField(max_length=150,blank=True) > type = models.ForeignKey(DocumentType) > description = models.TextField(blank=True) > file = > > models.FileFi

Assigning a file manually to a model FileField

2009-03-31 Thread Matias Surdi
I have the following model: class Document(BaseModel): name = models.CharField(max_length=150,blank=True) type = models.ForeignKey(DocumentType) description = models.TextField(blank=True) file = models.FileField(upload_to="data/documentation/document/%Y/%m/%d",blank=True) A