mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
Declare is_relation and related_model on Field (#230)
This commit is contained in:
committed by
Maksim Kurnikov
parent
cbb6a7a9ac
commit
58f1833cab
@@ -18,6 +18,7 @@ class ForeignObjectRel(FieldCacheMixin):
|
||||
concrete: bool = ...
|
||||
editable: bool = ...
|
||||
is_relation: bool = ...
|
||||
related_model: Type[Model]
|
||||
null: bool = ...
|
||||
field: RelatedField = ...
|
||||
model: Union[Type[Model], str] = ...
|
||||
@@ -44,8 +45,6 @@ class ForeignObjectRel(FieldCacheMixin):
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
@property
|
||||
def related_model(self) -> Type[Model]: ...
|
||||
@property
|
||||
def remote_field(self) -> RelatedField: ...
|
||||
@property
|
||||
def target_field(self) -> AutoField: ...
|
||||
|
||||
Reference in New Issue
Block a user