What is the error when migrating database?

You can't migrate the database, each time popping up this error
ValueError: invalid literal for int() with base 10: 'auth.User'


#models.py

class Profile(models.Model):
 user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
 date_of_birth = models.DateField(blank=True, null=True)

 def __str__(self):
 return self.user.username

class Post(models.Model):
 text = models.TextField()
 author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
 published = models.DateTimeField(default=timezone.now)
March 19th 20 at 08:40
1 answer
March 19th 20 at 08:42
ValueError: invalid literal for int() with base 10: 'auth.User'


Obviously you're trying to drive a text string in a variable of type Int.
Int is an integer.

Find more questions by tags Django