ManyToMany
class¶
edgy.ManyToManyField
¶
Bases: ForeignKeyFieldFactory
build_field
classmethod
¶
build_field(**kwargs)
PARAMETER | DESCRIPTION |
---|---|
**kwargs |
TYPE:
|
Source code in edgy/core/db/fields/factories.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
validate
classmethod
¶
validate(**kwargs)
default validation useful for one_to_one and foreign_key
PARAMETER | DESCRIPTION |
---|---|
**kwargs |
TYPE:
|
Source code in edgy/core/db/fields/factories.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
get_constraints
classmethod
¶
get_constraints(**kwargs)
Returns the propery column type for the field, None for Metafields
PARAMETER | DESCRIPTION |
---|---|
**kwargs |
TYPE:
|
Source code in edgy/core/db/fields/factories.py
56 57 58 59 |
|
get_column_type
classmethod
¶
get_column_type(**kwargs)
Returns the propery column type for the field, None for Metafields
PARAMETER | DESCRIPTION |
---|---|
**kwargs |
TYPE:
|
Source code in edgy/core/db/fields/factories.py
61 62 63 64 |
|
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
66 67 68 69 |
|
_get_field_cls
cached
staticmethod
¶
_get_field_cls()
Source code in edgy/core/db/fields/factories.py
71 72 73 74 |
|
__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
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
|