SendApproval() got unexpected keyword arguments: 'instance'

Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/approval?data=Test+approval+1

Django Version: 4.1.1
Python Version: 3.10.7
Installed Applications:
[‘jazzmin’,
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘Approval’]
Installed Middleware:
[‘django.middleware.security.SecurityMiddleware’,
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.middleware.common.CommonMiddleware’,
‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘django.middleware.clickjacking.XFrameOptionsMiddleware’]

Traceback (most recent call last):
File “E:\Users\lavan\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py”, line 55, in inner
response = get_response(request)
File “E:\Users\lavan\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py”, line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “E:\django\EasyDocApproval\Approval\views.py”, line 321, in approval
form = SendApproval(instance=view)
File “E:\Users\lavan\AppData\Local\Programs\Python\Python310\lib\site-packages\django\db\models\base.py”, line 585, in init
raise TypeError(

Exception Type: TypeError at /approval
Exception Value: SendApproval() got unexpected keyword arguments: ‘instance’

Please post the code for your view and form here.

When posting code, templates, error messages, etc, enclose the blocks of code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted.

Thanks for suggesting the procedure. But solved that instance problem.