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 <
[email protected]>:

> 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
> <https://groups.google.com/d/msgid/django-developers/CAFp8GAL7GQMGAQqJTL8r2i%2BY_cz4zrU-4pmvODYyZMfxp_F2PQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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
> <https://groups.google.com/d/msgid/django-developers/200844D0-8D6B-4CF6-A0C4-AFC96236AD4A%40polytechnique.org?utm_medium=email&utm_source=footer>
> .
> 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/CAFp8GAJPC996cKRp95MUW5E%3DM9v_wdeBqmiQYBNZrLgieZx1gA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to