toastdriven/django-tastypie — pull request #639 by jasonbartz (2012-08-24 18:41:59+00:00)
Title: Bugfix] Fixed Paginator.max_limit (default=1000) to respect settings.API_MAX_LIMIT_PER_PAGE

Changing the setting ``API_LIMIT_PER_PAGE`` will still be limited by the arbitrary number on the initialization of ``Paginator``, currently @ 1000.

By setting the default value to ``None``, and checking to see if a value is set on instantiation, the ``Paginator.max_limit`` property will default, if available, to the setting ``API_MAX_LIMIT_PER_PAGE``. If that's not available, it will set max_limit to 1000.

This will give priority to the property set on the ``Resource``, but will still allow a global ``max_limit`` for those who wish to set it.

In reference to commit 0379aa3

Address issues #572 #218