form_class = forms.CharField AttributeError: 'function' object has no attribute 'CharField'

Please do not post images or screenshots of code. (It’s not readable on all devices and it can’t be quoted or highlighted for further discussion.)
Post the code itself and the error messages as text into the body of your message. (When doing so, enclose the block of code / text between lines of three backtick - ` characters. That means you’ll have a line of ```, then the text (or code), then another line of ```.

Shoud it not be … forms.CharField(**kwargs)

https://docs.djangoproject.com/en/3.2/ref/forms/fields/