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

it would be nice to config what entities should be audited to avoid ALL by default #5

Closed
dmitry-saritasa opened this issue Feb 3, 2017 · 4 comments

Comments

@dmitry-saritasa
Copy link

No description provided.

@dmitry-saritasa
Copy link
Author

for example through a decorator against Model class

@soynatan
Copy link
Owner

soynatan commented Feb 4, 2017

Right now, the app audits everything, except the models specified in: DJANGO_EASY_AUDIT_UNREGISTERED_CLASSES_DEFAULT and DJANGO_EASY_AUDIT_UNREGISTERED_CLASSES_EXTRA. This is explained here.

If I understand you correctly, what you suggest is a way to avoid auditing everything by default, except some specific models. I think it could be useful.

@dmitry-saritasa
Copy link
Author

If I understand you correctly, what you suggest is a way to avoid auditing everything by default, except some specific models. I think it could be useful.

yes, exactly

@soynatan
Copy link
Owner

soynatan commented May 14, 2017

This has been solved in #15 by adding another setting. The app will only log the models listed in DJANGO_EASY_AUDIT_REGISTERED_CLASSES. If any of the models in this setting is also listed in the unregistered classes settings, it won't be logged.

For example: DJANGO_EASY_AUDIT_REGISTERED_CLASSES = ['app_one.Model', 'app_two.Model, 'app_three.Etc']

You can check it out and are welcome to open another issue if you find a problem with it. Thanks!

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

2 participants