StarbaseCommunityProject / EndoLink

An open-source Starbase community website.
https://discord.gg/qDPF2z6Krh
GNU General Public License v3.0
2 stars 1 forks source link

Hotfix/user serializer expansion #62

Closed MaxWasUnavailable closed 2 years ago

MaxWasUnavailable commented 2 years ago

Description

Please include a summary of the change and which issue is resolved. List any dependencies that are required for this change.

Created NestedUserExtraInfoSerializer, which is added as a nested serializer to the User serializer; adding its info the User object when requested through the User serializer.

We now also create the linked UserExtraInfo object automatically when a user registers via the RegisterSerializer or is created through the regular UserSerializer.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

Please check [x] all that apply.

MaxWasUnavailable commented 2 years ago

@pascalstockert Should be fixed 👌🏻