I can’t send the form data through the modal
My view.py file
class CrearReclamacion(CreateView):
model = Rec
form_class = RecForm
template_name = 'reclamaciones/reclamacion.html'
success_url = reverse_lazy('Reclamaciones')
reclamacion.html
<!-- Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addModalLabel">Nueva Reclamacion</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form action="" method="POST" enctype="multipart/form-data" class="form-control">
{% csrf_token %}
<div class="modal-body">
<div class="mb-3">
<div class="form-label">{{ form.num_reclamacion.label }}</div>
<div class="col-12 col.md-9">{{ form.num_reclamacion }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.num_cliente.label }}</div>
<div class="col-12 col.md-9">{{ form.num_cliente }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.empresa.label }}</div>
<div class="col-12 col.md-9">{{ form.empresa }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.tipo.label }}</div>
<div class="col-12 col.md-9">{{ form.tipo }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.atiende.label }}</div>
<div class="col-12 col.md-9">{{ form.atiende }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.delegacion_departamento.label }}</div>
<div class="col-12 col.md-9">{{ form.delegacion_departamento }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.motivo.label }}</div>
<div class="col-12 col.md-9">{{ form.motivo }}</div>
</div>
<div class="mb-3">
<div class="form-label">{{ form.descripcion.label }}</div>
<div class="col-12 col.md-9">{{ form.descripcion }}</div>
</div>
<br>
<div><button type="submit" class="btn btn-success">Enviar informacion</button></div>
</div>
</form>
</div>
</div>
</div>
button that opens the modal
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addModal">
Nueva Reclamacion
</button>
I attach image when I send the data
Do you know what can happen?