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

Maintain compatibility with serializer_class overrides #530

Merged

Commits on Feb 8, 2022

  1. Maintain compatibility with serializer_class overrides

    In commit ed0f7b6 serializer class configuration was moved into the
    settings file in a way that made things significantly less flexible for
    implementers of custom view classes. Instead of just defining
    serializer_class (like with all other DRF view classes) it became necessary
    to define both _serializer_class (which isn't defined at all in
    TokenViewBase, which gives rather strange error messages) and then add
    another line in settings.
    
    This was also a breaking change, but it doesn't need to be. This commit
    restores compatibility with just defining serializer_class (but the new way
    to configure serializer classes is also supported).
    vainu-arto committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    9bbeb1f View commit details
    Browse the repository at this point in the history