I have a model named "book" and a model named "BookCategoty". how i can assign infinite category ForgienKeys? for books that fall into several categories.
CodePudding user response:
You can use models.ManyToManyField(Model_name)
I have a model named "book" and a model named "BookCategoty". how i can assign infinite category ForgienKeys? for books that fall into several categories.
CodePudding user response:
You can use models.ManyToManyField(Model_name)