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
Currently it's not possible to access the current instance in a converter, except you use decorators. I currently define converters automatically based on their type with the field_transformer hook, unfortunately this only provides the class.
This can be implemented in multiple ways.
Enforcing the self argument in converters. This would cause a breaking change)
Only passing the instance if the user provides 2 arguments
Passing the instance in field_transformer
The text was updated successfully, but these errors were encountered:
Currently it's not possible to access the current instance in a converter, except you use decorators. I currently define converters automatically based on their type with the
field_transformer
hook, unfortunately this only provides the class.This can be implemented in multiple ways.
field_transformer
The text was updated successfully, but these errors were encountered: