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
If a model is registered as a Snippet, and it has a ForeignKey that has the attribute on_delete=models.PROTECT, the Delete Bulk Action will not respect this condition.
Steps to Reproduce
Create a model that has a models.ForeignKey with the property on_delete=models.PROTECT.
Add a wagtail_hooks.py and register a SnippetViewSet of that model.
Use Delete Bulk Action
Technical details
Django version: 5.0.3
Wagtail version: 6.0.1
Browser version: You can use Chrome 123 to find this out.
The text was updated successfully, but these errors were encountered:
Issue Summary
If a model is registered as a Snippet, and it has a
ForeignKey
that has the attributeon_delete=models.PROTECT
, the Delete Bulk Action will not respect this condition.Steps to Reproduce
models.ForeignKey
with the propertyon_delete=models.PROTECT
.SnippetViewSet
of that model.Technical details
The text was updated successfully, but these errors were encountered: