Error Pointers for APIViews #1044
Unanswered
exiareinert-hpa
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Thanks for your feedback. Before the fix of #986 the error pointer base was hard coded and was only correct in some cases and in other it was not. And the only way which seemed plausible is to make calculation based on the This said we might change this check but for this it is important to know the different APIView use cases. So could you paste your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have an API view which inherits from
rest_framework.views.APIView
, rather thanGenericAPIView
. Before (I believe) PR #986 was merged, formatting for required field errors used field names, e.g.:Because pointers are now set only if the view inherits from
GenericAPIView
, required field errors are now much less informative:It doesn't make sense for my API view to inherit from
GenericAPIView
, because it provides the result of a calculation rather than directly returning model data. Would it be possible to reinstate the previous behavior in cases like this?Beta Was this translation helpful? Give feedback.
All reactions