title: TypeError: __init__() got an unexpected keyword argument 'widget'
body: <p>I am getting runtime sever error while running the command <code>python manage.py runserver</code>. The Terminal is showing errors:
  line 35, in CustomertaskForm,startdate=forms.DateInput(widget=forms.DateField()) TypeError: <strong>init</strong>() got an unexpected keyword argument 'widget'</p>
  
  <p>forms.py</p>
  
  <pre><code>class CustomertaskForm(forms.ModelForm):
  
      def __init__(self, *args, **kwargs):
          super(CustomertaskForm, self).__init__(*args, **kwargs)
  
      title=forms.CharField(widget=forms.TextInput(attrs={'class':'form-control', 'required': 'required'}))
      discription=forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'required': 'required'}))
      startdate=forms.DateInput(widget=forms.DateField())
      enddate=forms.DateInput(widget=forms.DateField())
  
      class Meta:
          model=Customertask
          fields=['title','discription','startdate','enddate']
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>class Customertask(models.Model):
     title=models.CharField(max_length=200)
     discription=models.CharField(max_length=500)
     startdate=models.DateTimeField()
     enddate=models.DateTimeField()
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>def createtasks(request):
  if request.method == 'POST':
      form=CustomertaskForm(request.POST)
      if form.is_valid():
          tasksave=Customertask.objects.create(
              customer=models.ForeignKey(Customer)
              title=form.cleaned_data['title'],
              discription = form.cleaned_data['discription'],
              startdate=form.cleaned_data['startdate'],
              enddate=form.cleaned_data['enddate']
          )
          tasksave.save()
          return HttpResponseRedirect('/customer/tasktable')
  else:
      form=CustomertaskForm()
  return render(request, 'customer/createtasks.html', {'form': form})
  </code></pre>
  
  <p>is it Important to migrate, each time changes in models.py or forms.py....please gime a clear comment on the migration.</p>