astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

feat(backend): passed context to nested serializers #148

Closed allynt closed 3 years ago

allynt commented 3 years ago

Added user to context of UserSerializer so that it is available to the corresponding UserProfileSerializers. Just in case any of them need access to it for their own nested serializers.

This is a bit convoluted b/c of https://github.com/encode/django-rest-framework/issues/2555.