How to enable bulk delete in Wagtail Admin (Wagtail 2.1.1, Django 2.2.28)
I’m currently working on a project using Wagtail 2.1.1 and Django 2.2.28.
In Django Admin, there’s a built-in bulk delete action that allows selecting multiple records and deleting them at once. However, in Wagtail Admin, this functionality doesn’t seem to exist in my current version.
I want to implement a bulk delete feature for one of my custom models (not a snippet), similar to how Django Admin provides it.
Here’s my model example:
class membership(address):
user = models.OneToOneField(m3_account, on_delete=models.CASCADE, unique=True)
locality_site = models.ForeignKey(wagtailSite, null=True, on_delete=models.CASCADE)
# Contact details:
business_name = models.CharField(max_length=100, verbose_name='Business Name/Account Name')
contact_name = models.CharField(max_length=100)
phone = models.CharField(max_length=70, verbose_name="Phone Number")
def __str__(self):
return self.business_name
Before I start writing custom logic for this, I’d like to know:
Does Wagtail support bulk delete functionality in newer versions of the admin interface?
If yes, from which version was it officially introduced or supported?
Would upgrading from Wagtail 2.1.1 to a certain version allow me to use this feature directly (without registering my model as a snippet)?
I want to keep using Wagtail’s admin interface (ModelAdmin) and not convert my model into a snippet.
Any guidance on compatible versions or recommended upgrade paths would be appreciated.