OneToOne
class¶
edgy.OneToOneField
¶
Bases: ForeignKey
Representation of a one to one field.
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 |
|