In this episode we are going to fix a mistake that I made in part 04 of this course.
If you watched the previous episode you know I screwed up a bit while doing Many to Many relationship. Since I don’t wanna deal with that mistake throughout this course, I will show you how to correct that in this quick episode.
I’m also gonna show how to create inverse relation between products and categories.
The problem is mainly that I had a brain fart during last episode and called this field product_categories. It should only be called category or categories, just as the inverse relation, should be called product or products.
So now we are going to fix that.
Code used in this tutorial
https://bit.ly/3HIV0ca
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: https://github.com/ivandoric
Twitter: / ivan_doric
Instagram: / watchlearntuts
Facebook: / watchlearntutorials