burke-software / django-mass-edit

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

Fix warning RemovedInDjango41Warning #108

Open gitenth opened 2 years ago

gitenth commented 2 years ago

Please fix warning:

RemovedInDjango41Warning: 'massadmin' defines default_app_config = 'massadmin.apps.MassAdminConfig'. Django now detects this configuration automatically. You can remove default_app_config. app_config = AppConfig.create(entry)

add code into massadmin/__init__.py:


import django

if django.VERSION < (3, 2):
    default_app_config = 'massadmin.apps.MassAdminConfig'
PetrDlouhy commented 1 year ago

@gitenth Could you please convert your comment into Pull request?

PetrDlouhy commented 10 months ago

@gitenth I have released django-mass-edit version 3.5.0 which should support Django up to 4.2. Is this issue still a problem in that version?

samuller commented 10 months ago

Yes, it looks like it's still an issue with v3.5.0. I see the warning when I run Django with warnings enabled:

PYTHONWARNINGS=default python manage.py runserver