Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For OneToOne lookup field use the target_field to determine type #482

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
848da48
For OneToOne lookup field use the target_field to determine type
lingster Oct 27, 2019
09e956b
Updated reference.yaml
lingster Oct 28, 2019
cee4f93
Fix tox tests
lingster Oct 28, 2019
4d26dfa
Reverted change as tox tests failing
lingster Oct 28, 2019
00f8838
Add utf-8 support for generated formats
Jan 14, 2021
e6d0528
Merge branch 'master' into utf8-support
JoelLefkowitz Sep 22, 2021
6670052
Allow specifying response as a reference
vmax Nov 28, 2021
e6c1aad
[readme] Fix missing re_path import
damien-ramelet Feb 15, 2022
0c14a4f
fix map source mapping
PetrDlouhy Feb 22, 2022
ab7f37f
Remove universal wheel, python 2 is unsupported
gopackgo90 Mar 11, 2022
fc4d6a1
Merge pull request #778 from PetrDlouhy/master
JoelLefkowitz Jul 14, 2022
3f01252
Merge pull request #773 from damien-devpy/missing_import_readme
JoelLefkowitz Jul 14, 2022
55d2805
Inline allow_unicode parameter
JoelLefkowitz Jul 14, 2022
113be08
Merge pull request #692 from ProstoMaxim/utf8-support
JoelLefkowitz Jul 14, 2022
850ccf5
Update changelog
JoelLefkowitz Jul 14, 2022
8bc55e8
Update changelog typos
JoelLefkowitz Jul 14, 2022
78720c7
Merge pull request #782 from gopackgo90/patch-1
JoelLefkowitz Jul 15, 2022
f5f9b2a
Add cspell
JoelLefkowitz Jul 15, 2022
58d0cdf
Fix old spelling errors
JoelLefkowitz Jul 15, 2022
a577536
Add ref_name to UserSerializer after removing suffix typo
JoelLefkowitz Jul 15, 2022
1b03e72
Merge pull request #796 from axnsan12/cspell
JoelLefkowitz Jul 15, 2022
6745ddb
Merge pull request #757 from oppgjorskontoret/allow-inserting-arbitra…
JoelLefkowitz Jul 17, 2022
cf97970
Merge branch '1.21.x' into pr/482
JoelLefkowitz Jul 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow specifying response as a reference
  • Loading branch information
vmax committed Jan 6, 2022
commit 6670052aa59b7494e5014067a8b7e6493b59c727
2 changes: 2 additions & 0 deletions src/drf_yasg/inspectors/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def get_response_schemas(self, response_serializers):
description='',
schema=serializer,
)
elif isinstance(serializer, openapi._Ref):
response = serializer
else:
serializer = force_serializer_instance(serializer)
response = openapi.Response(
Expand Down