I mean the users who have the number of group is the largest ten and you see the relation is manytomany. On 1月29日, 下午8时05分, Stodge <[email protected]> wrote: > I think he needs to read the tutorial: > > http://docs.djangoproject.com/en/1.1/intro/tutorial03/#write-views-th... > > And I quote: > > "Here's one stab at the index() view, which displays the latest 5 poll > questions in the system...." > > On Jan 29, 4:57 am, Wayne Koorts <[email protected]> wrote: > > > What do you mean by "top ten"? > > > On 29/01/2010, at 20:53, CCC <[email protected]> wrote: > > > > hi, > > > I have two models:user,group,and they are manytomany, > > > class User(model.Model): > > > name = models.CharField(max_length=20) > > > > class Group(models.Model): > > > name = models.CharField(max_length=20) > > > users = models.ManytoManyField(User) > > > > now i want to get the top ten users who have the groups > > > ,thanks for advance! > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Django users" 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 > > > athttp://groups.google.com/group/django-users?hl=en > > > .
-- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

