-
Notifications
You must be signed in to change notification settings - Fork 414
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
Improve auto model registration #550
Improve auto model registration #550
Conversation
efd8727
to
64e013f
Compare
Codecov Report
@@ Coverage Diff @@
## master #550 +/- ##
==========================================
+ Coverage 94.54% 94.56% +0.02%
==========================================
Files 30 30
Lines 898 902 +4
==========================================
+ Hits 849 853 +4
Misses 49 49
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…n-managed ones feat: automatically register m2m fields for models when opting to auto register models
64e013f
to
71fce7a
Compare
@@ -14,6 +14,7 @@ | |||
- feat: Added pre-log and post-log signals. ([#483](https://github.com/jazzband/django-auditlog/pull/483)) | |||
- feat: Make timestamp in LogEntry overwritable. ([#476](https://github.com/jazzband/django-auditlog/pull/476)) | |||
- feat: Support excluding field names globally when ```AUDITLOG_INCLUDE_ALL_MODELS``` is enabled. ([#498](https://github.com/jazzband/django-auditlog/pull/498)) | |||
- feat: Improved auto model registration to include auto-created models and exclude non-managed models, and automatically register m2m fields for models. ([#550](https://github.com/jazzband/django-auditlog/pull/550)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be in Breaking Changes
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I was wrong
@aqeelat Thanks for this PR. Only a question otherwise, LGTM |
Why are we excluding non-managed models? Just because a model isn't managed doesn't mean we don't want to track changes to instances of it. |
closes #315
closes #548
feat: collect all models including auto created ones and excluding non-managed ones
feat: automatically register m2m fields for models when opting to auto register models