title: Getting error while using HttpRequest.build_absolute_uri(location) in Django
body: <p>My code:</p>
  
  <pre><code>from django.http import HttpRequest
  
  admin_subject = "New question added"
  admin_message = "A new question has been successfully added. Please review and approve it."
  location = reverse("admin:appname_question_change", args=(new_question.pk,))
  url = HttpRequest.build_absolute_uri(location)
  admin_html_message = "&lt;h3&gt;%s&lt;/h3&gt;\
                          &lt;p&gt;%s&lt;/p&gt;\
                          &lt;a href='%s'&gt;%s&lt;/a&gt;" % (admin_subject, admin_message, url, url)
  mail_admins(admin_subject, admin_message, fail_silently=False, connection=None, html_message=admin_html_message)
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code>unbound method build_absolute_uri() must be called with HttpRequest instance as first argument (got str instance instead)
  </code></pre>
  
  <p>I have tried much but don't know what is causing this error.
  I want absolute uri to be sent in email.</p>