astrosat / django-astrosat-users

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

chore(backend): no longer adding "user" to context of UserViewSet #150

Closed allynt closed 3 years ago

allynt commented 3 years ago

Although I still pass the parent context from UserSerializers to UserProfileSerializers, I no longer explicitly add "user" to that context. It is just too complicated to ensure the context is always correct since the UserSerializer is used in so many different ways.

Instead, I split the serializer in orbis that was giving me so much trouble into 2 distinct classes: