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
I would like to suggest some minor update for NestedHyperlinkedIdentityField in terms of OneToOne relations.
As there is no need of providing lookup_field in such scenario, allowing lookup_field=None field's kwarg could provide url just fine.
Example url patterns:
/basic_resource/
/basic_resource/{basic_resource_lookup}/
/basic_resource/{basic_resource_lookup}/nested_OneToOne_resource/
As parent_lookup_kwargs pointing basic_resource_lookup would be declared in nested serializer - it is just enough to get exact instance of nested resource for each basic_recource
The text was updated successfully, but these errors were encountered:
Hi!
I would like to suggest some minor update for
NestedHyperlinkedIdentityField
in terms ofOneToOne
relations.As there is no need of providing
lookup_field
in such scenario, allowinglookup_field=None
field's kwarg could provide url just fine.Example url patterns:
/basic_resource/
/basic_resource/{basic_resource_lookup}/
/basic_resource/{basic_resource_lookup}/nested_OneToOne_resource/
As
parent_lookup_kwargs
pointing basic_resource_lookup would be declared in nestedserializer
- it is just enough to get exact instance of nested resource for each basic_recourceThe text was updated successfully, but these errors were encountered: