How to pass a instance to the Django formset, The Scenario is like this. I have updated multiple rows by using a formset and, in a later stage i need to edit those values which i added earlier.(Editing)
q = PaymentLines.objects.filter(pay_lines=project)
formset = PayFormSet(prefix='payment', instance=q)