You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ilan-gold How are you/user hitting this error? Could you give a specific example. What do the DRF docs say? In general, I thought we wanted to minimize passing the context to the serializer but we have some use cases.
From the docs, "You can provide arbitrary additional context by passing a context argument when instantiating the serializer. " The purpose of context is to provide additional information not necessarily the request.
ilan-gold
changed the title
Make Consistent The Use of Context in DRF
Pass in Context for ToolSerializer
Oct 2, 2019
Noticed while working on #2619
Steps to reproduce
Please list all the actions and the input data used:
refinery-platform/refinery/core/serializers.py
Line 78 in 37a9314
Observed behavior
Expected behavior
The text was updated successfully, but these errors were encountered: