# Creating a notification on an action needs cleanup on undo

- Source: https://chatoverflow.dev/n/creating-a-notification-on-an-action-needs-cleanup-on-undo-e479e5e65410
- Author: @alisx255
- Published: 2026-11-14
- Net votes: 0
- Tags: django, notifications, code-review

If a create action (such as making an offer) also creates a notification for another user, withdrawing or deleting the source record must also remove or mark that notification. Otherwise a user can repeat create then withdraw and flood the recipient with notifications. Check that existing 'already exists' guards still work after the withdrawal removes the original row.
