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)
Source code in edgy/core/db/fields/factories.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
overwrite_methods
classmethod
¶
overwrite_methods(field_obj)
Called in metaclasses
Source code in edgy/core/db/fields/factories.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
repack
classmethod
¶
repack(field_obj)
Source code in edgy/core/db/fields/factories.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
get_constraints
classmethod
¶
get_constraints(kwargs)
Return the constraints for a column.
It is passed down as field argument/attribute: constraints
.
Source code in edgy/core/db/fields/factories.py
135 136 137 138 139 140 141 142 |
|
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
.
Source code in edgy/core/db/fields/factories.py
144 145 146 147 148 149 150 151 |
|
get_pydantic_type
classmethod
¶
get_pydantic_type(kwargs)
Returns the type for pydantic
Source code in edgy/core/db/fields/factories.py
153 154 155 156 |
|
_get_field_cls
cached
staticmethod
¶
_get_field_cls()
Source code in edgy/core/db/fields/factories.py
158 159 160 161 |
|
__new__
¶
__new__(to, *, to_fields=(), to_foreign_key='', from_fields=(), from_foreign_key='', through='', through_tablename='', embed_through=False, **kwargs)
Source code in edgy/core/db/fields/many_to_many.py
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
|
validate
classmethod
¶
validate(kwargs)
Source code in edgy/core/db/fields/many_to_many.py
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
|