Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning RemovedInDjango41Warning #108

Open
gitenth opened this issue Apr 21, 2022 · 3 comments
Open

Fix warning RemovedInDjango41Warning #108

gitenth opened this issue Apr 21, 2022 · 3 comments

Comments

@gitenth
Copy link

gitenth commented Apr 21, 2022

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
Copy link
Collaborator

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

@PetrDlouhy
Copy link
Collaborator

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants