Skip to content

Commit

Permalink
Merge pull request #8 from dcramer/add-request
Browse files Browse the repository at this point in the history
Add request to default context (fixes GH-7)
  • Loading branch information
mattrobenolt committed Jan 6, 2016
2 parents 359e017 + 8a9a68e commit be4fc77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sudo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def sudo(request, template_name='sudo/sudo.html', extra_context=None):
return HttpResponseRedirect(redirect_to)

context = {
'request': request,
'form': form,
REDIRECT_FIELD_NAME: redirect_to,
}
Expand Down

0 comments on commit be4fc77

Please sign in to comment.