How to tell Campaign that if a record is deleted in table A, the same record, based on a field that would act as a Foreign Key, should also be deleted?
Is there any configuration I can do in the schema, so I get the on_delete=models.CASCADE other DB have?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @god_prophet ,
In the schema defination, in element tag of the link add integrity="own" (deleting the source occurrence leads to the deletion of the target occurrence)
To know about other possible integrity values, refer this document
integrity (optional): referential integrity of the occurrence of the source table to the occurrence of the target table. Possible values are as follows:
Hi @god_prophet ,
In the schema defination, in element tag of the link add integrity="own" (deleting the source occurrence leads to the deletion of the target occurrence)
To know about other possible integrity values, refer this document
integrity (optional): referential integrity of the occurrence of the source table to the occurrence of the target table. Possible values are as follows:
Views
Likes
Replies
Views
Likes
Replies