care.audit_log.helpers module

remove_non_member_fields(d: dict)
instance_finder(v)
seperate_hashable_dict(d: dict)
get_or_create_meta(instance)
get_model_name(instance)
class Search(type, value)

Bases: NamedTuple

type: str

Alias for field number 0

value: str

Alias for field number 1

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)
class MetaDataContainer

Bases: dict

class LogJsonEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: JSONEncoder

default(obj)