         success : function(json) {
              document.location.href = "{% url 'openfindings' %}";
            }
        })
  }


  function DuplicateID(dup_id) {
    $.ajax({
        type: 'POST',
        url: "{% url 'finding_duplicate' %}",
        headers:{
          "X-CSRFToken": '{{ csrf_token }}'
        },
        data : { 'duplicate_id': dup_id},

        success : function(json) {
          document.location.href = "{% url 'openfindings' %}";
        }
    })
  }
  
</script>

{% endblock jav