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.")
Source:stackexchange.com