Open DarrenTian opened 5 years ago
acutally, depth=2 will expose all user info like password....I think we either need a different user profile class or a customized serializer.
That is correct, we will need custom class or serializer in that case. You / YellowSub was extending the user class right, in that case a custom serializer for that class should do the trick.
Currently it only gives an primary key of the user We'll need user display name(not username, currently username is uniquely used for email). user profile image intro information.