It sounds like what you are looking for is an intermediary model, this is ticket #6905 I believe, and is currently considered a django beta maybe-feature, which is to say if it's ready by beta, it's in 1.0 else it will be afterwords.
On Jul 22, 6:38 am, Mathieu Richardoz <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm a complete Django noob, but I've reached the same conclusions, > namely: > 1. Django is really wonderful! > 2. I need an ordered ManyToMany relationship :-) > > (long story short: my project involves photos and galleries; the > photos can belong to multiple galleries with a potentially different > order in each gallery...). > > Adding an explicit connecting model like Patryk Zawadzki suggests > sounds OK technically, but I think it won't be very user-friendly, at > least for the non-geeky end user. > I believe you're right Oliver, the most elegant way to do so would > probably be to create something like an OrderedManyToManyField model, > which would inherit the core ManyToManyField one. > > So, good luck to the Django team for 1.0, and here's hoping this > feature gets a fair priority afterwards :-) > > Regards, > Math > > On 4 juil, 00:14, OliverMarchand <[EMAIL PROTECTED]> wrote: > > > Thanks for your answer all! > > I really appreciate it! > > > In the meantime, I have thought of the following ugly but simple > > solution. A comma (or whatever character) seperated list of primary > > keys in a CharField can hold the values in theorderneeded. Now the > > only thing I need is a widget that generates this list. > > Somewhat similar to:http://www.nuff-respec.com/external/javascriptgui.html > > (Except that he above demo does not select, it just orders) > > I would then need to write my own accessor functions for the related > > model objects. > > > Any comment on that? > > Oliver --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
