Ticket #31932 - Unique checking in formsets should exclude forms marked for deletion.

I am currently addressing the concerns raised in https://code.djangoproject.com/ticket/31932 and would appreciate guidance on the most effective approach to resolving the issues outlined in Ticket #31932

i have come up with check_unique_together for the new feature
The _check_unique_together method is used to enforce a unique_together constraint on certain fields in the forms of the formset. This constraint ensures that no two forms in the formset have the same combination of values for these fields.
but i am not able to get the actual "field1" and "field2" values from the forms.py
But feel free to correct me if my understanding is not correct!
thank you