X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/0a28b77641bb5ad58bf832e55db65204e3f6e41d..refs/heads/master:/fnp_django_pagination/middleware.py?ds=sidebyside diff --git a/fnp_django_pagination/middleware.py b/fnp_django_pagination/middleware.py index 4036511..9d2d9f4 100644 --- a/fnp_django_pagination/middleware.py +++ b/fnp_django_pagination/middleware.py @@ -28,11 +28,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -try: - from django.utils.deprecation import MiddlewareMixin -except ImportError: - # Django < 1.10 - MiddlewareMixin = object +from django.utils.deprecation import MiddlewareMixin def get_page(self, suffix=''): @@ -41,7 +37,6 @@ def get_page(self, suffix=''): 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: