We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to have sth like this
from auditlog.registry import AuditlogModelRegistry create_only_auditlog = AuditlogModelRegistry( create=True, update=False, delete=False, access=False, custom={ post_save=my_signal_handler } ) create_only_auditlog.register(MyModel)
But the problem is that we can not use this create_only_auditlog
create_only_auditlog
because model_instance_diff would throw KeyError as it always get the default auditlog
KeyError
auditlog
Can we have new settings attribute to declare our custom auditlogs ?
The text was updated successfully, but these errors were encountered:
Thanks @hoangquochung1110 for this feature. having a new settings attributes seems a good idea
Sorry, something went wrong.
Hi @hramezani Can I open a PR for it ?
My plan is to have a new settings attr let's say AUDITLOG_REGISTRY
AUDITLOG_REGISTRY
We also may have AuditlogRegistry which acts as "facilitator" which help keep track of auditlogs with a variety of different configurations.
AuditlogRegistry
And the last thing. we may modify model_instance_diff to get rid of its dependence on the default auditlog
@hoangquochung1110 Yes, go for it.
Successfully merging a pull request may close this issue.
I'd like to have sth like this
But the problem is that we can not use this
create_only_auditlog
because model_instance_diff would throw
KeyError
as it always get the defaultauditlog
Can we have new settings attribute to declare our custom auditlogs ?
The text was updated successfully, but these errors were encountered: