TypeError: int() argument must be a string during migrating django model

Published: 22/09/2019
TypeError: int() argument must be a string during migrating django model
Source: STACKOVERFLOW.COM

I am facing a problem after I add a new field as a foreign key: In the beginning, My models was this: class Book(models.Model): title = models.CharField(max_length=150) Later, I have added a foreign-key field for author and my models these belelow: class Author(models.Model): name = models.CharField(max_length=50) class Book(models.Model): title = models.CharField(max_length=150) author = models.F

Read more
Related news
Comment
FACEBOOK