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 #823

Closed
wants to merge 2 commits into from
Closed

Allow dynamic serializer configuration via settings #823

wants to merge 2 commits into 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

massaroPietro and others added 2 commits June 4, 2024 01:20
- 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 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.03%. Comparing base (566984a) to head (97aee7b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #823      +/-   ##
==========================================
- 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.

Copy link
Contributor

@tomwojcik tomwojcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small lint issue. Other than that, LGTM

djoser/conf.py Show resolved Hide resolved
@massaroPietro massaroPietro reopened this Jun 7, 2024
@massaroPietro massaroPietro closed this by deleting the head repository Jun 7, 2024
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.

2 participants