mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 16:57:12 +08:00
Add db Field.flatchoices (#1128)
* Add db Field.flatchoices * @property
This commit is contained in:
@@ -219,6 +219,9 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
|
|||||||
limit_choices_to: Optional[_LimitChoicesTo] = ...,
|
limit_choices_to: Optional[_LimitChoicesTo] = ...,
|
||||||
ordering: Sequence[str] = ...,
|
ordering: Sequence[str] = ...,
|
||||||
) -> _ChoicesList: ...
|
) -> _ChoicesList: ...
|
||||||
|
def _get_flatchoices(self) -> List[_Choice]: ...
|
||||||
|
@property
|
||||||
|
def flatchoices(self) -> List[_Choice]: ...
|
||||||
def has_default(self) -> bool: ...
|
def has_default(self) -> bool: ...
|
||||||
def get_default(self) -> Any: ...
|
def get_default(self) -> Any: ...
|
||||||
def check(self, **kwargs: Any) -> List[CheckMessage]: ...
|
def check(self, **kwargs: Any) -> List[CheckMessage]: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user