Update Python & Django supported versions + migrate to ruff#14
Open
samiashi wants to merge 10 commits intodjk2:masterfrom
Open
Update Python & Django supported versions + migrate to ruff#14samiashi wants to merge 10 commits intodjk2:masterfrom
samiashi wants to merge 10 commits intodjk2:masterfrom
Conversation
2cd4c24 to
cbb911e
Compare
cbb911e to
821330e
Compare
821330e to
eb03b9e
Compare
eb03b9e to
d3cc210
Compare
Owner
|
Hi. Sorry for very very long time without any response. |
Author
|
@djk2 Just wanted to ping you and see if we can get this reviewed |
Author
|
This PR now supersedes #13. I cherry-picked the callback feature here, adapted it to the current branch, and included the docs/tests/changelog updates so the work can merge through a single PR. |
871b40a to
2d53fca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the project for the current supported Python/Django matrix and folds in the outstanding callback feature from #13 so the maintenance work lands in a single PR.
Summary
ADMIN_SHELL_CALLBACKso projects can audit or log shell executions after each successful runNotes
The dynamic model fix addresses cases where Django Admin Shell tries to import models that are registered in Django's app registry but are not directly exposed as attributes on their declared module.
The callback support was cherry-picked from #13 and adapted to the current branch. The docs, tests and changelog entry are included here as well, so this PR supersedes #13.