Django mongo db conection - All auth - Social account extra field error

raise ValueError( ValueError: Cannot alter field socialaccount.SocialAccount.extra_data into socialaccount.SocialAccount.extra_data - they do not properly define db_type (are you using a badly-written custom field?)

class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE) 
name = models.CharField(max_length=100)
address = models.CharField(max_length=255)

profile_picture = models.ImageField(upload_to='account/profilepicture/', blank=True, null=True)
mobile_number = models.CharField(max_length=15, blank=True, null=True)

def __str__(self):
    return f"{self.user.username}'s Profile"
Вернуться на верх