APIRequestFactory() returns a WSGIRequest #9654
              
                Unanswered
              
          
                  
                    
                      paulwispnext
                    
                  
                
                  asked this question in
                Potential Issue
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Well as per title, APIRequestFactory() returns a WSGI request object. This means that it doesn't have a
.dataattribute.The quick solution that google shows is to wrap it in a
Requestobject. However if we do something like:We get the following error:
raise exceptions.UnsupportedMediaType(media_type)And debugging shows that the parsers (list) is empty.
Beta Was this translation helpful? Give feedback.
All reactions