Issue
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.
Solution
You can use models.ManyToManyField(Model_name)
Answered By - davide
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.
You can use models.ManyToManyField(Model_name)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.