Re: Digest for django-developers@googlegroups.com - 1 update in 1 topic

2014-09-14 Thread Vernon D. Cole
On Sep 14, 2014 7:57 AM, vernondc...@gmail.com wrote: One minute after midnight should be displayed as "00:01" in 24 hour mode, but "1:00 am" in 12, IMHO. On Sep 14, 2014 4:48 AM, wrote: django-developers@googlegroups.com

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

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): >

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

2014-09-14 Thread Aymeric Augustin
Someone might want to return a 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

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

2014-09-14 Thread younger.shen
i can use it as self.queryset, i do not need to pass the queryset as a function parameter, but still thank YOU . every key to every locked *DREAM* 2014-09-14 22:00 GMT+08:00 Aymeric Augustin < aymeric.augus...@polytechnique.org>: > Someone might want to return a different