On 2/22/07, Sandro Dentella <[EMAIL PROTECTED]> wrote: > > The reverse is not true, you don't get a widget for the user in the form > created for Group. > > Why that?
Mostly historical. In the bad old days, the Django query syntax didn't support queries across the reverse direction of relations. It does now, but the effect of this change wasn't ever cascaded into the oldforms implementation. There is still a reason internally for differentiating between the many_to_many and get_all_many_to_many_relations() - the queries that are stimulated for forward and backwards relation handling are different in subtle ways, so there needs to be a way to distinguish them. However, you are correct - there shouldn't be a distinction at the user level between forwards and reverse relations. At the query level, this is already true - we just need the forms framework to catch up. We're currently working on implementing the newforms framework. The first target for newforms is to get it to match the capabilities of oldforms. Once that is done, we can add extra functionality (like handling reverse m2m and m2o relations). I don't know if this is on Adrian's todo list, but it certainly is on mine. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
