Re: a question about get_paginate_by method of django.views.generic.list.MultipleObjectMixin

2014-09-14 Thread younger.shen
different value depending on the queryset, > especially depending on queryset.count(). > > -- > Aymeric. > > > On 14 sept. 2014, at 12:17, younger.shen wrote: > > hi everyone: > > I write a mixin so i check the inner mixins of django itself, and find >

Re: a question about get_paginate_by method of django.views.generic.list.MultipleObjectMixin

2014-09-14 Thread younger.shen
my version of django is 1.7 every key to every locked *DREAM* 2014-09-14 18:17 GMT+08:00 younger.shen : > hi everyone: > > I write a mixin so i check the inner mixins of django itself, and find > this > > def get_paginate_by(self, queryset): >

a question about get_paginate_by method of django.views.generic.list.MultipleObjectMixin

2014-09-14 Thread younger.shen
hi everyone: I write a mixin so i check the inner mixins of django itself, and find this def get_paginate_by(self, queryset): """ Get the number of items to paginate by, or ``None`` for no pagination. """ return self.paginate_by i wanna know what the queryset is