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
If the request is without include=layers a simple HyperlinkedRelatedField shall be used.
Include Scenario
If the request is with include=layers parameter, the request will crash cause the HyperlinkedRelatedField drops the data.
So, IF and only IF the include for layers is needed i need to switch the field class for only this attribute to the ResourceRelatedField`to that the data is rendered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Default Scenario
If the request is without
include=layers
a simpleHyperlinkedRelatedField
shall be used.Include Scenario
If the request is with
include=layers
parameter, the request will crash cause theHyperlinkedRelatedField
drops the data.So, IF and only IF the include for layers is needed i need to switch the field class for only this attribute to the ResourceRelatedField`to that the data is rendered.
Is there any way to do that simple?
Beta Was this translation helpful? Give feedback.
All reactions