- Problem adding documents
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
{% block content %}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{{ form.hidden_tag() }}
|
||||
{# Debug: render CSRF veld expliciet om aanwezigheid in de DOM te garanderen #}
|
||||
{% if form.csrf_token %}{{ form.csrf_token }}{% endif %}
|
||||
<script>
|
||||
// Client-side debug: bevestig dat het CSRF veld in de DOM staat
|
||||
console.debug('[add_document] CSRF present in DOM?', !!document.querySelector('input[name="csrf_token"]'));
|
||||
</script>
|
||||
{% set disabled_fields = [] %}
|
||||
{% set exclude_fields = [] %}
|
||||
{% for field in form.get_static_fields() %}
|
||||
|
||||
Reference in New Issue
Block a user