Skip to content

Commit

Permalink
Merge pull request pennersr#1334 from Jeewes/patch-1
Browse files Browse the repository at this point in the history
Add two missing ACCOUNT_TEMPLATE_EXTENSION suffix
  • Loading branch information
pennersr committed Mar 18, 2016
2 parents 33f8c56 + 22f309f commit 3bfb319
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions allauth/socialaccount/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def _process_signup(request, sociallogin):
if not get_adapter(request).is_open_for_signup(
request,
sociallogin):
return render(request,
"account/signup_closed.html")
return render(
request,
"account/signup_closed." + account_settings.TEMPLATE_EXTENSION
)
except ImmediateHttpResponse as e:
return e.response
get_adapter(request).save_user(request, sociallogin, form=None)
Expand Down Expand Up @@ -86,7 +88,10 @@ def render_authentication_error(request,
}
context.update(extra_context)
return render(
request, "socialaccount/authentication_error.html", context)
request,
"socialaccount/authentication_error." + account_settings.TEMPLATE_EXTENSION,
context
)


def _add_social_account(request, sociallogin):
Expand Down

0 comments on commit 3bfb319

Please sign in to comment.