Home > Enterprise >  Put a book in several categories (Django)
Put a book in several categories (Django)

Time:04-29

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)

  • Related