-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Support custom admin classes in @admin.register fixer #228
Support custom admin classes in @admin.register fixer #228
Conversation
This seems fine to me - the decorator returns the admin class, unchanged, so that should work.
I don't think we need to handle this case. It's idiomatic to import
I think it's fine to rely on the |
Great, thanks for the quick response. Then I suppose you can check the code. If was thinking the changelog and docs are still relevant but let me know if you want me to add a mention somewhere of the different extensions to the initial fixer. Cheers. |
I don't think the changelog needs updating but the readme could do with another example for cusotm sites, and maybe a sentence describing how custom sites are detected. |
Alright, looks good to merge. I've pushed a few small fixes, including support files with names like |
For #190
Hey, so I started working on the custom admin support and I had a few interrogations to finish it.
What should I do if
from django.contrib import admin
is missing (I suppose it's quitte common if you work with custom sites). I'm not sure where to add the importShould we extend the
looks_like_admin_file
check heuristic to the regular fixers too ?