title: Python (DJango) - Update more than one row of a model simultaneously
body: <p>I have a form / view that allows the user to register as many languages ​​as he wants. Now I am trying to extract all languages ​​that my logged in user has registered and allow him to change each of the fields at the same time, same page, same view ...
  How can I do this? Does anyone have any ideas?</p>
  
  <p>For exemple:</p>
  
  <pre><code>registered rows 
  ID User Language
  1   A   english
  2   A   italian
  --&gt;
  updated rows
  ID User Language
  1   A   Portuguese
  2   A   Mandarin
  </code></pre>
  
  <p>I was trying this way, but I need to pass id by id:</p>
  
  <pre><code>def MyUpdateView(request, item):
      index = get_object_or_404(MyModel, pk=item)
  
      temp = MyMode.objects.filter(usuario=request.user).values()
  
      if request.method == 'GET':
          formset = FormFormset(request.GET or None, prefix='idiomas')
  
      elif request.method == 'POST':
          formset = FormFormset(request.POST, prefix='idiomas')
  
          if formset.is_valid():
                  for form in formset:
                      language = form.cleaned_data.get('language')
                      level = form.cleaned_data.get('level')
                      if language and level:
                          MyMode.objects.filter(usuario=request.user, id=item).update(language=language, level=level)
  
      return render(request, 'somepage.html', {
          'formset': formset,
          'temp': temp,
      })
  </code></pre>