Django - Signals
You want to delete related
Photo objects before deleting a Gallery instance. Which signal and approach is best?Photo objects before deleting a Gallery instance. Which signal and approach is best?Photo objects must be deleted before the Gallery instance is removed to avoid orphaned data.pre_delete runs before the Gallery is deleted, allowing safe deletion of related Photo objects.pre_delete on Gallery to delete related Photo objects -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions