diff --git a/bootstrap_paginator/templatetags/paginator.py b/bootstrap_paginator/templatetags/paginator.py index fb6c735..712746e 100644 --- a/bootstrap_paginator/templatetags/paginator.py +++ b/bootstrap_paginator/templatetags/paginator.py @@ -47,4 +47,4 @@ def append_to_get(context, **kwargs): else: get = {} get.update(kwargs) - return '?{1}'.format(urlencode(get)) + return '?{}'.format(urlencode(get)) diff --git a/tests/settings.py b/tests/settings.py index fe01415..0b88193 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -20,6 +20,10 @@ os.path.join(BASE_DIR, 'templates'), ) +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.core.context_processors.request', +) + SECRET_KEY = 'notsecure' ROOT_URLCONF = 'urls'