def login(self, request, extra_context=None):
context = {<EOL>'<STR_LIT:title>': _('<STR_LIT>'),<EOL>'<STR_LIT>': request.get_full_path(),<EOL>}<EOL>if (REDIRECT_FIELD_NAME not in request.GET and<EOL>REDIRECT_FIELD_NAME not in request.POST):<EOL><INDENT>context[REDIRECT_FIELD_NAME] = request.get_full_path()<EOL><DEDENT>context.update(extra_context or {})<EOL>defaults = {<EOL>'<STR_LIT>': context,<EOL>'<STR_LIT>': self.name,<EOL>'<STR_LIT>': self.login_form or AdminAuthenticationForm,<EOL>'<STR_LIT>': self.login_template or '<STR_LIT>',<EOL>}<EOL>return login(request, **defaults)<EOL>
Displays the login form for the given HttpRequest.