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 <[email protected]> wrote: > 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 doing here ? > > > every key to every locked *DREAM* .................... > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/CAFp8GAL7GQMGAQqJTL8r2i%2BY_cz4zrU-4pmvODYyZMfxp_F2PQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/200844D0-8D6B-4CF6-A0C4-AFC96236AD4A%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.
