In this video I'll show you how to add a Venue Owner and why that's important for our Django App.
We need to sign an ID number to each venue that shows who owns the venue. That way, only the owner will be able to edit and delete that venue, instead of allowing everyone to do that.
So we need to make a small tweak to our models.py file, make and push a migration, and then tweak out views.py file to add the owner ID to each new venue submission.
✅ Watch The Entire Django Wednesdays Playlist
▶️ Get The Code:
✅ Subscribe To My YouTube Channel:
▶️ See More At:
✅ Join My Facebook Group:
▶️ Learn to Code at https://Codemy.com
Take $22 off with coupon code: youtube
✅ Buy a Codemy T-Shirt!