Skip to content

Fix issue on many to many fields in all forms #2533

@susilnem

Description

@susilnem

Issue description

For example: Currently, the fields that are M2M in the DREF forms are creating a new instance in every form update. Due to this, the translation for the required fields are being triggered in every update. This could be one of the reasons why the translation costs are currently very high since these fields are using the translation API a lot.

Solution

  • While updating the DREF forms, a new instance should not be created in every form update if the ID is passed from the frontend. If the ID is NOT passed, a new instance should be created.
  • Update the CUD in Serializers for M2M fields

Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions