Many to Many Ordered List

2006-06-19 Thread [EMAIL PROTECTED]
Hi There, I just released my first pubic facing Django site, and have run into a design problem. It's a music blog / band site at http://www.victimoftime.com Something I didn't consider when I was building it (I'm the tech guy, others are the content people) is that at a given concert, the band

Re: Many to Many Ordered List

2006-06-19 Thread James Bennett
On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The problem is, how can I preserve the many to many relationship, but > have a specific order for the bands? Any ideas? You should be able to take the QuerySet of bands for the concert and tack on an 'order_by()' to sort by whatever fiel

Re: Many to Many Ordered List

2006-06-19 Thread [EMAIL PROTECTED]
James Bennett wrote: > On 6/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The problem is, how can I preserve the many to many relationship, but > > have a specific order for the bands? Any ideas? > > You should be able to take the QuerySet of bands for the concert and > tack on an 'ord

Re: Many to Many Ordered List

2006-06-19 Thread yml
I would handle this kind of situation by adding an intermediate class AttributeOfTheLink. I don't know if this is a good practice but I think it will do the tricks. Let me know if you find something better. Yann --~--~-~--~~~---~--~~ You received this message b

Re: Many to Many Ordered List

2006-06-19 Thread yml
Here it is a link that details the solution a bit more: - http://www.djangoproject.com/documentation/models/m2m_intermediary/ Yann --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Many to Many Ordered List

2006-06-19 Thread Ivan Manolov
I am having a similar problem here. having read the m2m_intermediary/ wiki page, I still cant wrap my head around the idea of displaying a multiple select dropdown list of related objects on the admin side. --~--~-~--~~~---~--~~ You received this message because