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_byi 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 django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/200844D0-8D6B-4CF6-A0C4-AFC96236AD4A%40polytechnique.org.