[Answered ]-Form data not stored in database. What is the problem?

1👍

An IntegerField [Django-doc] is a form field, not a widget. You specify the field as:

class FeedBackForm(forms.Form):
    feedBACK = forms.CharField(widget=forms.Textarea)     
    rating = forms.IntegerField()

Note: By default, a form field has required=True [Django-doc], hence you do not need to mark fields as required.

Leave a comment