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'd like to use URLFor to describe a URL for a relationship. I am rendering the child model Lease, which back_populates resources.
When I am deserializing the Lease object and links is generated, the parent Resource object is desereialized as well, but since it is a list, I am unsure how I can use that relationship to generate a URL to self, which requires looking at lease.relationships[0].discriminator. See LeaseSchema at bottom.
I haven't found much luck with the following.
I'd like to use URLFor to describe a URL for a relationship. I am rendering the child model
Lease
, which back_populatesresources
.When I am deserializing the
Lease
object andlinks
is generated, the parentResource
object is desereialized as well, but since it is a list, I am unsure how I can use that relationship to generate a URL to self, which requires looking atlease.relationships[0].discriminator
. SeeLeaseSchema
at bottom.Resource Model
Sapro Model
Lease Model
Lease Schema
The text was updated successfully, but these errors were encountered: