Thanks for that - and yes I am in a bit of a rush! I thought my initial question was maybe a little to convoluted as I just needed a lead to go on really...
On 23 Oct 2008, at 16:13, Karen Tracey wrote: > On Thu, Oct 23, 2008 at 10:45 AM, Niall Mccormack <[EMAIL PROTECTED] > > wrote: > > 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? > > Since you seem to be in a hurry, without giving your scenario a > whole lot of thought, I'll recommend that you search the docs for > "generic relations" and read up about them. > > Karen > > > 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 -~----------~----~----~----~------~----~------~--~---