title: How to update password in django?
body: <p>I want to edit my user data from template, bellow are my codes. </p>
  
  <pre><code>def guru_edit(request, id):
     Guru = get_object_or_404(DataGuru, GuruUser_FK_id=id)
     GuruUser = get_object_or_404(User, id=id)
     if request.method == 'POST':
         form_guru = dataguruform(request.POST, instance=Guru)
         form_user = userform(request.POST, instance=GuruUser)
         if form_guru.is_valid() and form_user.is_valid():
             form_guru.save()
             form_user.save()
             return redirect('index_guru')
     else:
         form_guru = dataguruform(instance=Guru)
         form_user = userform(instance=GuruUser)
    return render(request, 'guru/guru_tambah.html', {'form_user': form_user,'form_guru':form_guru})
  </code></pre>
  
  <p>this is my forms.py</p>
  
  <pre><code>class userform(ModelForm):
      class Meta:
         model = User
         fields = ('username','email', 'password','is_staff','is_active','is_superuser')
      widgets={
      'password':TextInput(attrs={'type':'password'})
      }
  </code></pre>
  
  <p>But when i was save from template, the password is not encrypted like it used to be, but just plaintext.
  How to make it encripted?</p>