care.audit_log.helpers module¶
- instance_finder(v)¶
- get_or_create_meta(instance)¶
- get_model_name(instance)¶
- class Search(type, value)¶
Bases:
NamedTuple
- candidate_in_scope(candidate: str, scope: list, is_application: bool = False) bool ¶
Check if the candidate string is valid with the scope supplied, the scope should be list of search strings - that can be either glob, plain or regex
- Parameters:
candidate – search string
scope – List of Search
- Returns:
valid?
- exclude_model(model_name)¶