burke-software / django-mass-edit

Make bulk changes in the Django admin interface
152 stars 67 forks source link

Custom Admin: Mass edit not working due to bad reverse #87

Closed victor-lenoir closed 2 years ago

victor-lenoir commented 4 years ago

Hello,

Love the package but i'm having issues with it when using it with a custom admin. In massadmin/massadmin.py line 152: If redirect_url = reverse('admin:{}_{}_changelist'.format( self.model._meta.app_label, self.model._meta.model_name, ))

Could become

redirect_url = reverse('{}:{}_{}_changelist'.format( self.admin_site.name, self.model._meta.app_label, self.model._meta.model_name, ))

To fully handle custom admin that would be great! Do you want me to make a PR?

Cheers!

PetrDlouhy commented 4 years ago

Hi Victor,

seems like useful change. Please make the PR.

PetrDlouhy commented 2 years ago

I already fixed this in https://github.com/burke-software/django-mass-edit/commit/8a2fbe01186e1277c19795d2c9053d76186cefa6 even with test.