title: Unable to edit the django table
body: <p>Unable to perform the update operation.</p>
  
  <p>This function is for table update, but the code is not allowing me to pass the instance in the form because it is not a model form. Please suggest the changes.</p>
  
  <p>class userForm(forms.Form):</p>
  
  <pre><code>SHIFT_CHOICES = ( ('D','DAY'), ('N','NIGHT') )
  ADMISSION_FORM_STATUS = ( ('Y','YES'), ('N','NO') )
  FORM_COMPLETE_STATUS = (  ('Y','YES'), ('N','NO'))
  TRAINING_STATUS = ( ('Y','YES'), ('N','NO') )
  STATUS = (  ('W','WORKING'), ('OL','ON_LEAVE'),  ('E','EXIT') )
  
  employee_id = forms.CharField(max_length=8,required=False)
  employer_id = CompanyModelChoiceField(required=False, queryset=Company.objects.all(), label='Employer', widget=Select2Widget)
  name = forms.CharField(max_length=255)
  uber_name = forms.CharField(max_length=255, required=False)
  mobile = forms.CharField(max_length=20, required=False)
  </code></pre>