Replies: 1 comment 4 replies
-
Thanks for the suggestion. Your first suggestion could be a quick improvement. Adding the view does not make too much sense though I think as getting resource type is not depended on the view but solely on the serializer. All in all the calculation of |
Beta Was this translation helpful? Give feedback.
-
Secenario
If there are some miss configuration in views or serializers it is hard to find out which of the registered views and depending serializers are bad configured for the
resource_name
attribute.Take a look at the code:
There will be no detail information on which serializer the AttributeError occurs.
Enhancement
call the
get_resource_type_from_serializer
function with optional view parameter:Beta Was this translation helpful? Give feedback.
All reactions