Support Django 4.0, drop Django < 2.1, Python < 3.6.
[django-pagination.git] / fnp_django_pagination / middleware.py
index 02f8e7c..9d2d9f4 100644 (file)
 from django.utils.deprecation import MiddlewareMixin
 
 
-def get_page(self, suffix):
+def get_page(self, suffix=''):
     """
     A function which will be monkeypatched onto the request to get the current
     integer representing the current page.
     """
     try:
-        # REQUEST is deprecated as of Django 1.7.
         key = 'page%s' % suffix
         value = self.POST.get(key)
         if value is None: