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
The text was updated successfully, but these errors were encountered:
dulldesk
changed the title
Deleting an Initiative should also delete its associated social links
Deleting an Initiative/user should also delete its associated social links
Oct 26, 2020
Unlike ForeignKey, GenericForeignKey does not accept an on_delete argument to customize this behavior; if desired, you can avoid the cascade-deletion by not using GenericRelation, and alternate behavior can be provided via the pre_delete signal.
So the solution (it seems, though not explicitly stated in the docs) is either using GenericRelation or pre_delete. GenericRelation might actually be quite handy for simplifying our SocialLinkAttachment queries.
May need to come after #70 is implementedThe text was updated successfully, but these errors were encountered: