Add db Field.flatchoices (#1128)

* Add db Field.flatchoices

* @property
This commit is contained in:
Adam Johnson
2022-08-26 15:23:26 +01:00
committed by GitHub
parent 0120fc531a
commit 82695e8e1c

View File

@@ -219,6 +219,9 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
limit_choices_to: Optional[_LimitChoicesTo] = ...,
ordering: Sequence[str] = ...,
) -> _ChoicesList: ...
def _get_flatchoices(self) -> List[_Choice]: ...
@property
def flatchoices(self) -> List[_Choice]: ...
def has_default(self) -> bool: ...
def get_default(self) -> Any: ...
def check(self, **kwargs: Any) -> List[CheckMessage]: ...