'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
- # TODO : check if useless
- # 'pagination.middleware.PaginationMiddleware',
+ 'dj_pagination.middleware.PaginationMiddleware',
'teleforma.middleware.XsSharing',
'django_user_agents.middleware.UserAgentMiddleware',
)
'teleforma',
'sorl.thumbnail',
# 'django_extensions',
- # 'pagination',
+ 'dj_pagination',
'postman',
# 'timezones',
# 'googletools',
# django-extensions==1.2.1
# django-timezones==0.2
# django-registration==3.1.2
+dj_pagination==2.5.0 # used by postman
django-json-rpc==0.7.1
# django-google-tools==1.1.0
django-nvd3==0.8.2
The fact that you are presently reading this means that you have had
knowledge of the CeCILL license and that you accept its terms.
"""
+
+import teleforma.patches
\ No newline at end of file
--- /dev/null
+# postman should use dj_pagination when installed but that's not the case here.
+# Instead it uses its dj_pagination mock functions.
+# So here we replace the pagination_tags templatetags of postman by those of dj_pagination.
+import sys
+sys.modules['postman.templatetags.pagination_tags'] = __import__('dj_pagination.templatetags.pagination_tags')