fix OneToOneField without related_name

This commit is contained in:
Maxim Kurnikov
2019-07-19 18:30:12 +03:00
parent fc9843bea6
commit fee4aad3d0
3 changed files with 41 additions and 27 deletions

View File

@@ -116,6 +116,9 @@ class FloatField(Field[_ST, _GT]):
class DecimalField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, float, decimal.Decimal, Combinable]
_pyi_private_get_type: decimal.Decimal
# attributes
max_digits: int = ...
decimal_places: int = ...
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,