Eclipse/pydev의 코드 완성은 나에게 잘 작동합니다. 그러나 내가 원하는 것처럼 작동하지 않는 한 가지가 있습니다. 이 문제에 지금코드 완성 Pydev Django 모델 외래 키 필드
class ReletionTree(models.Model):
mother = models.ForeignKey('RelationTree', blank=True, null=True)
father = models.ForeignKey('RelationTree', blank=True, null=True)
name = models.CharField()
rt = RelationTree.objects.get(name='Mary') #assume unique on Mary
: 다음 장고 모델을 고려
rt. #--> will code complete and give me options mother/father/name
rt.mother. #--> will not code complete into mother/father/name, it will code
# complete as if isinstance(rt.mother, models.ForeignKey) (I think)
를 PyDev가 나는 그들이 유형의 어디에서 것처럼이 완료 외래 키 을 원하는 코드를 이해 할 수있는 방법이 있나요 어떤에 내가 또한 DJA을 (매우 그것을 의심,
감사합니다 (위의 경우 RelationTree하지 models.ForeignKey에) 데이비드