Ao testar o cadastro da receita está apresentando o seguinte erro:
Django version 3.2.8, using settings 'alurareceita.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Internal Server Error: /usuarios/cria/receita
Traceback (most recent call last):
File "C:\Users\danie\Documents\DANIEL\projetos\django\aplicacao\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Users\danie\Documents\DANIEL\projetos\django\aplicacao\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\danie\Documents\DANIEL\projetos\django\aplicacao\usuarios\views.py", line 82, in cria_receita
receita = Receita.objects.create(nome_receita=nome_receita, ingredientes=ingredientes, modo_preparo=modo_preparo, tempo_preparo=tempo_preparo, rendimento=rendimento, categoria=categoria, uploadedFile=foto_receita, pessoa=user)
File "C:\Users\danie\Documents\DANIEL\projetos\django\aplicacao\venv\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\danie\Documents\DANIEL\projetos\django\aplicacao\venv\lib\site-packages\django\db\models\query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
TypeError: save() got an unexpected keyword argument 'using'
[05/Nov/2021 15:13:17] "POST /usuarios/cria/receita HTTP/1.1" 500 77841