1๐
โ
I can suggest two options,
-
Create your own
RegisterSerializer
, write your custom functionality and set this serializer as your Register serializer by mentioning in settings as follows so that your changes remains when you update the library.REST_AUTH_REGISTER_SERIALIZERS = { 'REGISTER_SERIALIZER': 'path.to.custom.RegisterSerializer', ... }
-
You can create
post_save
signal for User model and do your custom functionality everytime when a new user object is added.
Reference
Source:stackexchange.com