I have a Table Books which has 100 entries.
class Books(models.Model):
name = models.CharField(max_length=30)
I have another Table Titles which is newly created and has a Foreign Key relation.
class Titles(models.Model):
book = models.ForeignKey(Books, on_delete=models.CASCADE)
..........
Can I automatically create 100 new entries for Titles based on the existing entry for Books?
Or does changing Foreign Key to a different relation help?
Please help me out or point me in the right direction. Thank you in advance.