ah, yes you beat me to it while I was composing my post below...

Thanks!

On Dec 20, 5:34 pm, Marc Aymerich <glicer...@gmail.com> wrote:
> On Mon, Dec 20, 2010 at 11:14 PM, morgan wahl <morgy.w...@gmail.com> wrote:
> > Yes, I had hope that would work, but it doesn't (see my original post). In
> > your example u.doctype would end up as None instead of 'whatever'.
>
> woww, I really need go to sleep :)
>
> I don't know the best way to achieve that, btw you can pass the document
> attributes to the uploadfile constructor.
>
> d=Document(doctype='whatever')
> d.save()
> u=UploadFile(document_ptr=d, doctype=d.doctype, filename='rat.doc')
> u.save()
>
> --
> Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to