ManyToMany
class¶
edgy.fields.ManyToManyField
¶
Bases: ForeignKeyFieldFactory
methods_overwritable_by_factory
class-attribute
instance-attribute
¶
methods_overwritable_by_factory = frozenset(default_methods_overwritable_by_factory)
build_field
classmethod
¶
build_field(**kwargs)
PARAMETER | DESCRIPTION |
---|---|
**kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
overwrite_methods
classmethod
¶
overwrite_methods(field_obj)
Called in metaclasses
PARAMETER | DESCRIPTION |
---|---|
field_obj
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
repack
classmethod
¶
repack(field_obj)
PARAMETER | DESCRIPTION |
---|---|
field_obj
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
get_constraints
classmethod
¶
get_constraints(kwargs)
Return the constraints for a column.
It is passed down as field argument/attribute: constraints
.
PARAMETER | DESCRIPTION |
---|---|
kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
129 130 131 132 133 134 135 136 |
|
get_column_type
classmethod
¶
get_column_type(kwargs)
Returns column type for the field, None for Metafields..
It is passed down as field argument/attribute: constraints
.
PARAMETER | DESCRIPTION |
---|---|
kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
138 139 140 141 142 143 144 145 |
|
get_pydantic_type
classmethod
¶
get_pydantic_type(kwargs)
Returns the type for pydantic
PARAMETER | DESCRIPTION |
---|---|
kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/factories.py
147 148 149 150 |
|
_get_field_cls
cached
staticmethod
¶
_get_field_cls()
Source code in edgy/core/db/fields/factories.py
152 153 154 155 |
|
__new__
¶
__new__(to, *, through=None, from_fields=(), to_fields=(), **kwargs)
PARAMETER | DESCRIPTION |
---|---|
to
|
TYPE:
|
through
|
TYPE:
|
from_fields
|
TYPE:
|
to_fields
|
TYPE:
|
**kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/many_to_many.py
307 308 309 310 311 312 313 314 315 316 317 318 |
|
validate
classmethod
¶
validate(kwargs)
PARAMETER | DESCRIPTION |
---|---|
kwargs
|
TYPE:
|
Source code in edgy/core/db/fields/many_to_many.py
320 321 322 323 324 325 326 327 328 329 |
|