[Answer]-Django TastyPie deletes children if adding other

1👍

You can either:

  • provide full resource uri for the key’s value, i.e: route: "/api/v1/route/59/"
  • override the hydrate_route method of the MarkerResource to return an object given dictionary passed.
  • create a custom field based off fields.ForeignKey that would implement custom build_related_resource behaviour.

Leave a comment