mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +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] = ...,
|
||||
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]: ...
|
||||
|
||||
Reference in New Issue
Block a user