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
Sometimes, I need to make more complex queries that involve values that are not available in the current object of virtual model and I could pass them using serializer context. But, I can not do this in the current version because the only value that goes from the serializer to the virtual model is the request user.
Thanks for the attention!
The text was updated successfully, but these errors were encountered:
Hi @jackson541 , thanks for the input. For now, you can override this method to provide additional parameters at line 77. I suggest you to make your own base class and use it instead of the default VirtualModelSerializerMixin or VirtualModelSerializer. For now, that's the fastest solution. But if you can open a PR to include the serializer context at line 77, I'm happy to merge it. Please include tests.
Hello!
Sometimes, I need to make more complex queries that involve values that are not available in the current object of virtual model and I could pass them using serializer context. But, I can not do this in the current version because the only value that goes from the serializer to the virtual model is the request user.
Thanks for the attention!
The text was updated successfully, but these errors were encountered: