Declare is_relation and related_model on Field (#230)

This commit is contained in:
Youssef Moussaoui
2019-11-30 11:40:22 -08:00
committed by Maksim Kurnikov
parent cbb6a7a9ac
commit 58f1833cab
3 changed files with 4 additions and 4 deletions

View File

@@ -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: ...