care.utils.models.base module

class BaseManager(*args, **kwargs)

Bases: Manager

get_queryset()
class BaseModel(*args, **kwargs)

Bases: Model

external_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

created_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

modified_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

deleted

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects
class Meta

Bases: object

abstract = False
delete(*args)
class BaseFlag(*args, **kwargs)

Bases: BaseModel

flag

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cache_key_template = ''
all_flags_cache_key_template = ''
flag_type = None
entity_field_name = ''
class Meta

Bases: object

abstract = False
save(*args, **kwargs)
property entity
property entity_id
classmethod validate_flag(flag_name: FlagName)
classmethod check_entity_has_flag(entity_id: int, flag_name: FlagName) bool
classmethod get_all_flags(entity_id: int) tuple[FlagName]
created_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

deleted

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

external_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

modified_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.