Closed allynt closed 4 years ago
This was done in 8a7945b.
Now RegistrationView returns UserSerializerLite.
YASG was used to customise swagger documentation.
In retrospect, though, maybe I should have overwritten the Serializer rather than the View.
Actually, the Serializer has hard-coded support for all fields (which is as it should be). So overriding the view makes sense.
Since registering a user doesn't actually log them in, it seems risky to return the token key from that view.