title: 'IntegerField' object has no attribute 'value_from_datadict' error
body: <p><strong>I'm having a problem with my IntigerField in Django forms:
  Getting error:IntegerField' object has no attribute 'value_from_datadict'</strong></p>
  <p><strong>This is mine forms.py:</strong></p>
  <pre><code>from django import forms
  from .models import Post
  
  class PostForm(forms.ModelForm):
    class Meta:
      model = Post
      fields = ('task_title','task_discription','task_category','recommended_tools','budget')
      widgets = {
          'task_title': forms.TextInput(attrs={'class':'form-control'}),
          'task_discription': forms.Textarea(attrs={'class':'form-control'}),
          'task_category': forms.Select(attrs={'class':'form-control'}),
          'recommended_tools': forms.TextInput(attrs={'class':'form-control'}),
          'budget': forms.IntegerField(min_value=10, max_value=10000000),
      }
  </code></pre>
  <p>Views.py:</p>
  <pre><code>from django.shortcuts import render,get_object_or_404
  from django.http import HttpResponse
  from django.views.generic import ListView,DetailView, CreateView
  from .models import Post, TaskCategory
  from .forms import PostForm
   
  class AddPost(CreateView):
     model = Post
     form_class = PostForm
     template_name = 'add_post.html'
  </code></pre>
  <p><strong>urls.py:</strong></p>
  <pre><code>from django.urls import path
  from .views import AddPost
  
  urlpatterns = [
       path('AddPost/', AddPost.as_view(), name = 'add_post')
       ]
  </code></pre>
  <p><strong>models.py file:</strong>
  <strong>I'm trying to insert post into database, using django forms, but I'm always getting error from intiger, when I click on submit, noting is happening, and always getting same error</strong></p>
  <pre><code>from django.contrib.auth.models import User
  from django.db import models
  from django.urls import reverse
  class TaskCategory(models.Model):
  category_title = models.CharField(max_length=50)
  def __str__(self):
  return self.category_title
  
  class Post(models.Model):
  task_title = models.CharField(max_length=250)
  task_discription = models.CharField(max_length=250)
  task_category = models.ForeignKey(TaskCategory, on_delete=models.CASCADE)
  recommended_tools = models.CharField(max_length=250)
  budget = models.IntegerField(default=0)
  def __str__(self):
  return self.task_title + ' | ' + self.task_discription + ' | ' + 
  str(self.task_category) + ' | ' + self.recommended_tools + ' | ' + 
  str(self.budget)
  
  def get_absolute_url(self)       
  return reverse('post_detail', args=[str(self.id)])
  </code></pre>