Say I have a User model and an Account model.
The Account is related to the User with a OneToOne
relationship.
I have a ModelForm for the User model, and I'm looking for a third-party plugin / patch / snippet to allow this declaration:
class UserEditForm(ModelForm):
class Meta:
model = User
fields = ['first_name', 'last_name', 'email', 'account__phone']
Note the account__phone
part.
Thanks!