Commit db7b2e38 authored by Michal Čihař's avatar Michal Čihař

Silent pylint on different args

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 37ae4819
......@@ -43,6 +43,8 @@ DEFAULT_DOMAINS = ('example.net', 'example.com')
def admin_context(request):
"""Wrapper to get admin context"""
# Django has changed number of parameters
# pylint: disable=E1120
if django.VERSION < (1, 8, 0):
return admin.site.each_context()
return admin.site.each_context(request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment