On Fri, Jul 4, 2008 at 9:21 AM, spacetaxi <[EMAIL PROTECTED]> wrote: > Hm, it seems to me that nobody has a solution? Do I have to replace > the many-to-many-relation (editors) with an additional ArticleEditor- > class, containting a one-to-many relation to the User class and a one- > to-many relation to Article? Is this the only way to get a sorted User > selection widget? >
You've waited one day right at the beginning of a big holiday weekend in the US; I'd guess rather that no one has had a chance to look into this yet. If you want to make sure it doesn't get lost, open a ticket for it, but it's a bit early I think to be concluding you need to restructure your application to get around the change. Karen > > Kind regards > -Stephan > > On 3 Jul., 13:56, spacetaxi <[EMAIL PROTECTED]> wrote: > > Hello, currently I'm a little bit lost on this one... Maybe some kind > > soul can give me a hint? > > > > Look at this excerpt of a model class: > > > > ----- > > from django.db import models > > from django.contrib.auth.models import User > > class Article(models.Model): > > # (...snip...) > > editors = models.ManyToManyField(User, > > related_name='articles_from_editor') > > # (...snip...) > > ----- > > > > Everything was fine up to changeset 7806, which removed the default > > ordering of the User class:http://code.djangoproject.com/changeset/7806 > > > > After changeset 7806 the user selection widget in the admin form for > > my Article class contains *unsorted* usernames. This is a major > > problem when there are a lot of users existing in the database... > > > > So what's the easiest and most elegant way to get the user selection > > widget sorted again? > > > > BTW, I'm using the newforms-admin branch. > > > > TIA > > -Stephan > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---