ok, I'm going to simplify my question.

is there any way that I can create a ForeignKey or a ManytToMany that  
can accept multiple types of data Models?





On 23 Oct 2008, at 11:34, Niall Mccormack wrote:

>
> Hi there,
>
> I'm learning Django at the moment and need some advice.
>
> I need to create sections in my website that can accept two different
> models.
>
> i.e. a work section can have the following data
>       title - CharField
>       description - TextField
>       url link -      URLField
>       
>       media - a mixture of ImageFields and FileFields ( for videos )
>
>
> how would I setup the model for the media? where I can add in either
> type of Field and re-order them easily?
>
> Any advice would be appreciated
>
> Cheers
> NIall
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to