Accessing Values of a ForeignKey or OneToOne object in ModelForm
- by theactiveactor
I have a ModelFormA for ModelA, which has a one-one relationship with ModelB and foreign-key relationship with ModelC.
Inside ModelFormA, I can access attributes of the current ModelA instance via self.cleaned_data["colA-1"]. How would I access attributes of ModelB or ModelC?