Thanks a lot. Missed save_FOO_file in the docs.
On Dec 18, 12:52 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Dec 18, 2007 12:08 PM, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > def save(self, user):
> > if user != self.scheduled_product.teacher:
> > return False
> >
On Dec 18, 2007 12:08 PM, Ryan K <[EMAIL PROTECTED]> wrote:
> def save(self, user):
> if user != self.scheduled_product.teacher:
> return False
> media = Media(name=self.cleaned_data['media'].filename,
> media=self.cleaned_data['media'].content
Just to make the question a little more clear:
What type of object does model.FileType expect to get?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
I am trying to allow certain users to upload media and then "attach"
it via the contenttypes framework. The code posted below just puts the
contents of the file in the media field. How do I make this work with
the model.FileField? (putting it in the settings.MEDIA_ROOT+upload_to
directory?) This i
4 matches
Mail list logo