From 2d7b83e82182b29e9ebb733ed4b13d3a5f4640c8 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Tue, 24 May 2022 04:47:13 -0700 Subject: [PATCH 1/3] Update djangorestframework-stubs from 1.4.0 to 1.6.0 --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 83d01776..bbd3e74d 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -18,7 +18,7 @@ django-stubs==1.9.0 # https://github.com/typeddjango/django-stubs pytest==7.1.2 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.4 # https://github.com/Frozenball/pytest-sugar {%- if cookiecutter.use_drf == "y" %} -djangorestframework-stubs==1.4.0 # https://github.com/typeddjango/djangorestframework-stubs +djangorestframework-stubs==1.6.0 # https://github.com/typeddjango/djangorestframework-stubs {%- endif %} # Documentation From 502e8e523531b3c78f23a9af0765607e3e708ee5 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Sat, 4 Jun 2022 10:47:10 -0700 Subject: [PATCH 2/3] Update django-stubs from 1.9.0 to 1.11.0 --- {{cookiecutter.project_slug}}/requirements/local.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index c2ca554f..5a5d518a 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -14,7 +14,7 @@ watchgod==0.8.2 # https://github.com/samuelcolvin/watchgod # Testing # ------------------------------------------------------------------------------ mypy==0.950 # https://github.com/python/mypy -django-stubs==1.9.0 # https://github.com/typeddjango/django-stubs +django-stubs==1.11.0 # https://github.com/typeddjango/django-stubs pytest==7.1.2 # https://github.com/pytest-dev/pytest pytest-sugar==0.9.4 # https://github.com/Frozenball/pytest-sugar {%- if cookiecutter.use_drf == "y" %} From cf6fc443bbf25aad3b181170bc42587bc651165d Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 4 Jun 2022 14:49:26 -0300 Subject: [PATCH 3/3] Fix type error --- .../{{cookiecutter.project_slug}}/users/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py index 944daca5..0b47bd79 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py @@ -63,7 +63,7 @@ class TestUserUpdateView: # Initialize the form form = UserAdminChangeForm() - form.cleaned_data = [] + form.cleaned_data = {} view.form_valid(form) messages_sent = [m.message for m in messages.get_messages(request)]