Skip to content

Commit 933d057

Browse files
committed
Add DRF pin
1 parent fc7c74a commit 933d057

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

requirements/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
cryptography
66
Django>=4.2.21,<4.3.0 # CVE-2024-45230, CVE-2024-56374
7-
djangorestframework
7+
djangorestframework<3.16 # problem with OAuth2Application.organization null handling
88
django-crum
99
inflection
1010
sqlparse>=0.5.2 # https://github.com/ansible/django-ansible-base/security/dependabot/9

requirements/requirements_all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ django-oauth-toolkit==2.3.0
4646
# via -r requirements/requirements_oauth2_provider.in
4747
django-redis==6.0.0
4848
# via -r requirements/requirements_redis_client.in
49-
djangorestframework==3.16.1
49+
djangorestframework==3.15.2
5050
# via
5151
# -r requirements/requirements.in
5252
# drf-spectacular

test_app/tests/oauth2_provider/views/test_application.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def test_oauth2_provider_application_validator(admin_api_client):
202202
},
203203
)
204204
assert response.status_code == 400
205+
assert 'organization' in response.data
206+
assert 'This field is required' in str(response.data['organization'])
205207

206208

207209
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)