Django Rest Aut - User registration
问题 I´m using Django Rest Auth on Django 1.9 to register new users on system. And I need to execute some extra code in this process to save extra data on another tables. Anybody knows the best way to do it? 回答1: Write CustomRegisterSerializer and add it to settings.py file. REST_AUTH_REGISTER_SERIALIZERS = { "REGISTER_SERIALIZER":"common_app.serializers.CustomRegisterSerializer" } Write save() method of newly created serializer and put some extra executable code . If your user model have extra