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

Allow dynamic serializer configuration via settings #832

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

massaroPietro
Copy link

  • Added support for configuring serializers through settings: "SERIALIZERS" dictionary in djoser settings. Specifically added "provider_auth": "djoser.social.serializers.ProviderAuthSerializer".
  • Updated ProviderAuthView to use the dynamic serializer: serializer_class = settings.SERIALIZERS.provider_auth

- Added support for configuring serializers through settings: "SERIALIZERS" dictionary in djoser settings. Specifically added "provider_auth": "djoser.social.serializers.ProviderAuthSerializer".
- Updated `ProviderAuthView` to use the dynamic serializer: `serializer_class = settings.SERIALIZERS.provider_auth`
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.03%. Comparing base (35c815f) to head (c8a6155).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #832      +/-   ##
==========================================
- Coverage   99.03%   99.03%   -0.01%     
==========================================
  Files          26       26              
  Lines         833      832       -1     
==========================================
- Hits          825      824       -1     
  Misses          8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant