Moved `merge` argument into `**kwargs`.
authordeyk <deyk@crossway.org>
Wed, 11 Apr 2012 21:51:54 +0000 (14:51 -0700)
committerdeyk <deyk@crossway.org>
Wed, 11 Apr 2012 21:51:54 +0000 (14:51 -0700)
cas_provider/views.py

index fdae99f..675150b 100644 (file)
@@ -26,7 +26,8 @@ def _build_service_url(service, ticket):
         return service + '&ticket=' + ticket
 
 
-def login(request, template_name='cas/login.html', success_redirect='/account/', merge=False):
+def login(request, template_name='cas/login.html', success_redirect='/account/', **kwargs):
+    merge = kwargs.get('merge', False)
     logging.debug('CAS Provider Login view. Method is %s, merge is %s, template is %s.',
                   request.method, merge, template_name)