[Fixed]-How do I get the django HttpRequest from a django rest framework Request?

29👍

I went thru the source code and found my answer while typing out the question.

Django REST framework has a Request keep the HttpRequest (or at least one compatible with django messages) in a _request property. So, this works:

messages.success(self.request._request, "Domain Added.")

Leave a comment