./manage.py generateschema: AttributeError: 'NoneType' object has no attribute 'query_params' #8237
Answered
by
bradydean
bradydean
asked this question in
Potential Issue
-
My app injects a request query parameter value into serializer context and This is the section of code it cannot handle:
This is the full traceback:
I think this is where a mock django-rest-framework/rest_framework/schemas/openapi.py Lines 610 to 623 in 00cd4ef |
Beta Was this translation helpful? Give feedback.
Answered by
bradydean
Nov 18, 2021
Replies: 1 comment
-
I was able to fix this by using a custom implementation of
Note the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bradydean
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to fix this by using a custom implementation of
SchemaGenerator
.Note the
public=False
part, it's very important.