Extend generic view object_list to support paginate_by via cookies
You can use this view to have a possibility to use ?paginate_by=x on your generic lists. Example usage in urls.py: `url('^list/', object_list_with_paginate_by, {'queryset': Invoice.objects.all(), 'template_name': 'invoices/list.html', 'paginate_by': 10}, 'invoices.list')` 10 is the default objects count per page. For the first time parameter paginate_by is set in URL, we have to get it straight from there. If the parameter is set, then also set the cookie for later requests without the parameter If the parameter is not set, then we try the cookie or default value
- object_list
- cookies
- paginate_by