Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

NullableDeferredForeignKeyIdField

DeferredForeignKey (null=True, lazy_load=False) whose instance value is the related row's id, typed str | None.

Like :class:NullableForeignKeyIdField but for a deferred FK (related model referenced by string name, resolved once all tables exist). The value is always the raw id, so there is no generic to specialize:

ref = NullableDeferredForeignKeyIdField("OtherModel")   # -> str | None
Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

rel_model_name : str
adapt
value : Any
alias
alias : Any
asc
collation : Any
nulls : Any
between
lo : Any
hi : Any
bin_and
rhs : Any
bin_or
rhs : Any
bind
model : Any
name : Any
set_attribute : bool - True
bind_to
dest : Any
cast
as_type : Any
clone
coerce
_coerce : bool - True
collate
collation : Any
concat
rhs : Any
contains
rhs : Any
converter
db_value
value : Any
ddl
ctx : Any
ddl_datatype
ctx : Any
desc
collation : Any
nulls : Any
distinct
endswith
rhs : Any
get_modifiers
get_sort_key
ctx : Any
ilike
rhs : Any
in_
rhs : Any
iregexp
rhs : Any
is_alias
is_null
is_null : bool - True
like
rhs : Any
not_in
rhs : Any
python_value
value : Any
regexp
rhs : Any
set_model
rel_model : Any
startswith
rhs : Any
to_value
value : Any
unalias
unwrap
copy @staticmethod
method : Any
resolve @staticmethod
model_cls : Any
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.