  console.log(error)
                    },
                });

            });
        });
    </script>
    <script>
        $(document).ready(function () {
            $("#complete-button").click(function () {
                var patched = "{% url 'form_handler' 0 '1' %}".replace('0', "{{object.pk}}");
                $.ajax({
                    type: 'POST',
                    url: patched,
                    data: {
                        csrfmiddlewaretoken: '{{ csrf_token }}',
  