MiddlewareMixin = object
-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.
-# This file is part of django-ssify, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See README.md for more information.
-#
[tox]
envlist=clear,
- d{12,13,14}-py27,
- d{15}-py{27,32},
- d16-py{27,32,33},
- d17-py{27,32,33,34},
- d18-py{27,32,33,34},
- d{19,110}-py{27,34,35},
- d111-py{27,34,35,36,37},
- d20-py{34,35,36,37},
- d{21,22}-py{35,36,37},
+ d{12,13,14,15,16,17,18}-py27,
+ d{19,110}-py{27,35},
+ d111-py{27,35,36,37},
+ d{20,21}-py{35,36,37},
+ d22-py{35,36,37,38},
+ d30-py{36,37,38},
stats
[testenv]
d111: Django>=1.11,<2.0
d20: Django>=2.0,<2.1
d21: Django>=2.1,<2.2
- d22: Django>=2.2,<2.3
+ d22: Django>=2.2,<3.0
+ d30: Django>=3.0,<3.1
coverage
[testenv:clear]
-basepython=python3.4
+basepython=python3
commands=coverage erase
[testenv:stats]
-basepython=python3.4
+basepython=python3
commands=coverage html