Fix related fields inheritance from abstract models (#138)

This commit is contained in:
Maxim Kurnikov
2019-08-24 02:35:55 +03:00
committed by GitHub
parent 09767210ec
commit d7e8222163
3 changed files with 43 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ class Apps:
def get_app_configs(self) -> Iterable[AppConfig]: ...
def get_app_config(self, app_label: str) -> AppConfig: ...
# it's not possible to support it in plugin properly now
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> List[Type[Any]]: ...
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> List[Type[Model]]: ...
def get_model(self, app_label: str, model_name: Optional[str] = ..., require_ready: bool = ...) -> Type[Any]: ...
def register_model(self, app_label: str, model: Type[Model]) -> None: ...
def is_installed(self, app_name: str) -> bool: ...