I am using django social auth for social network login into my site and it works fine the user info is stored in the User model. But i have another model(ExtraInfo) that inherits the user model to store extra data. How do i create an new instance in the sub-model(ExtraInfo) when a new user is created in the User model by django social auth
I tried SOCIAL_AUTH_USER_MODEL = 'myapp.CustomUser' but this does not work since create_user method is not available for the sub-model
class ExtraInfo(User):
phoneNo = models.CharField(max_length = 30)
city = models.CharField(max_length = 30)
state = models.CharField(max_length = 30)