Re: assign media to models

2012-10-05 Thread Amirouche


On Thursday, October 4, 2012 1:26:07 AM UTC+2, winniehell wrote:
>
> Hi list! 
>
> I have different models with uploaded content. So I made a Media model 
> with a primary key to ContentType to distinguish to which kind of models 
> the media belongs. Now I want to upload the media inline instead of 
> having to add a Media instance first. Can anybody give me a hint how to 
> do this? 
>

I think this involves javascript and creating custom admin views, look for 
that in the Django documentation.

HTH,


Amirouche

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TAgvxrgNo7wJ.
To post to this group, send email to django-users@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.



assign media to models

2012-10-03 Thread winniehell
Hi list!

I have different models with uploaded content. So I made a Media model
with a primary key to ContentType to distinguish to which kind of models
the media belongs. Now I want to upload the media inline instead of
having to add a Media instance first. Can anybody give me a hint how to
do this?

Thanks,
Winnie

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.