def validate_instance(instance):
excludes = settings.AUTOMATED_LOGGING['<STR_LIT>']['<STR_LIT>']<EOL>for excluded in excludes:<EOL><INDENT>if (excluded in [instance._meta.app_label.lower(),<EOL>instance.__class__.__name__.lower()] or<EOL>instance.__module__.lower().startswith(excluded)):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Validating if the instance should be logged, or is excluded