mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
23 lines
718 B
Python
23 lines
718 B
Python
from typing import Any, Dict, Optional, Union
|
|
|
|
from django import forms
|
|
from django.db.models.query import QuerySet
|
|
|
|
class FlatpageForm(forms.ModelForm):
|
|
auto_id: str
|
|
data: Dict[str, Union[List[int], str]]
|
|
empty_permitted: bool
|
|
error_class: Type[django.forms.utils.ErrorList]
|
|
fields: collections.OrderedDict
|
|
files: Dict[Any, Any]
|
|
initial: Dict[str, Union[List[django.contrib.sites.models.Site], int, str]]
|
|
instance: django.contrib.flatpages.models.FlatPage
|
|
is_bound: bool
|
|
label_suffix: str
|
|
url: Any = ...
|
|
class Meta:
|
|
model: Any = ...
|
|
fields: str = ...
|
|
def clean_url(self) -> str: ...
|
|
def clean(self) -> Dict[str, Union[bool, QuerySet, str]]: ...
|