views.py
16.8 KB
-
Reorder initializing the view · 03270431
Determining the version and performing content negotiation should be done before ensuring the permission of the request. The reason is that these information can be used in handling the exceptions. For example different versions may return different error scheme. Also, the rendering class can be used to determine how to exception handler response should be rendered.
Mohamad Nour Chawich committed