def METHOD_NAME(self, request, *args, **kwargs):
    forms = self.get_forms()
    posted_form = DNSRecordForm(request.POST)
    # Find form which request's data belongs to
    for i, form in enumerate(forms):
        if (
            str(form.data.get('pk', '')) ==
            str(posted_form.data.get('pk', ''))
        ):
            forms[i] = posted_form
            break
    if posted_form.is_valid():
        if posted_form.data.get('delete'):
            errors = self.dnsaas.delete_dns_record(form.data['pk'])
            if not errors:
                messages.success(
                    request, _('DNS record has been deleted.')
                )
        elif posted_form.cleaned_data.get('pk'):
            errors = self.dnsaas.update_dns_record(
                posted_form.cleaned_data
            )
            if not errors:
                messages.success(
                    request, _('DNS record has been updated.')
                )
        else:
            errors = self.dnsaas.create_dns_record(
                posted_form.cleaned_data, service=self.object.service
            )
            if not errors:
                messages.success(
                    request, _('DNS record has been created.')
                )
        if errors:
            add_errors(posted_form, errors)
        else:
            return HttpResponseRedirect('.')
    kwargs['forms'] = forms
    return self.get(request, *args, **kwargs)