title: Why do the fields of the selected form return the value "none" and "null" in the database?
body: <p>I am trying to save a value in two fields, but when saving them I change the value to <code>none</code> and the db also shows me <code>null</code>.</p>
  
  <p>I have tried to change the parentheses to square brackets, seeing if the 2 values ​​of the form are taken to the database, but I don't quite understand the difference between <code>form.cleaned_data()</code> and <code>form.cleaned_data[]</code>, but by doing so with the square brackets, it generates an error.</p>
  
  <p>views.py</p>
  
  <pre><code>def solit(request):
      if request.method == 'POST' and request.is_ajax():
          form = addiForm(request.POST)
          if form.is_valid():
              peticion = form.save(commit=False)
              peticion.usuario = request.user
              peticion.save()
              peticion.usuario.d_pendientes = form.cleaned_data.get('d_pendientes')
              peticion.usuario.h_pendientes = form.cleaned_data.get('h_pendientes')
              peticion.usuario.save() 
              print (peticion.usuario.d_pendientes)
              print (peticion.usuario.h_pendientes)  
              return JsonResponse({'status': 'true', 'msg': 'Procesado Correctamente'})
          else:
              return JsonResponse({'status': 'false', 'msg': 'Los datos no son validos'})
      form = addiForm()
      return render(request, 'plantillas/adicionar.html', {'form':form})
  </code></pre>
  
  <p>my models.py </p>
  
  <pre><code>class Usuarios(AbstractUser):
      numero_empleado = models.IntegerField(null= True, blank= True)
      area = models.CharField(max_length = 200, null= True, blank= True)
      d_pendientes = models.IntegerField(null= True, blank= False)
      h_pendientes = models.IntegerField(null= True, blank= False)
      f_init = models.DateField(max_length = 200,null= True, blank= True)
      init_vac = models.DateField(max_length = 200, null= True, blank= True)
      fin_vac = models.DateField(max_length = 200, null= True, blank= True)
      ul_vac_tomadas = models.IntegerField(null= True, blank= True)
  
  
  class Peticion(models.Model):
      solit_choices = (
      ('Adicionar','Adicionar'),
  )
      solicitudes_id = models.AutoField(primary_key=True)
      usuario = models.ForeignKey(Usuarios, on_delete=models.CASCADE, null=True, blank=True)
      petit = models.CharField(max_length = 255, choices=solit_choices, null=True, blank=False)
      fec = models.DateTimeField(auto_now=True)
      razon = models.TextField(max_length=255, null=True, blank=True)
      periodo_init = models.DateField(max_length = 200, null=True, blank=True)
      periodo_fin = models.DateField(max_length = 200, null=True, blank=True)
      dias_adicion = models.IntegerField(null=True, blank=False)
      horas_adicion = models.FloatField(null=True, blank=False)
  </code></pre>
  
  <p>forms.py </p>
  
  <pre><code>class addiForm(forms.ModelForm):
      class Meta:
          """Formulario de solicitud"""
  
          model = Peticion
  
          fields = [
  
              'solicitudes_id',
              'petit',
              'razon',
              'periodo_init',
              'periodo_fin',
              'dias_adicion',
              'horas_adicion',
  
      ]
  </code></pre>
  
  <p>In the console I can see, that he is receiving the POST request, but it also prints the value ​​<code>none</code> and not the values that I enter in the form inputs.</p>