title: Is it possible to dynamically change the attribute of a form widget at run time
body: <p>I currently have an object that looks like this</p>
  
  <pre><code>class StudentDetails(forms.Form):
      school_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'readonly': 'readonly'}))
      student_name= forms.CharField(required=True)
      student_user_name = forms.CharField(required=True)
  </code></pre>
  
  <p>Now these fields are being prepoulated in a view before being rendered </p>
  
  <pre><code> return render(request, 'manageStudent.html',
                    {'form': StudentDetails(
                        initial={
                            'school_name': rslt[0][1],
                            'student_name': rslt[0][2],
                            'student_user_name': rslt[0][3]
                        })})
  </code></pre>
  
  <p>My question is if it is possible to make <code>student_user_name</code> field disabled ? I would like to toggle that field form enabled to disabled ?</p>