[Answered ]-Django Inlineformset with two same foreignkeys

2👍

You have to specify the name of the field you want to use as the ‘link’ to the parent. Something like:

ReferenceFormSet = inlineformset_factory(UserProfile, Reference, fk_name='user', fields='__all__', extra=3, can_delete=True )

Leave a comment