Hi All,
I am working on hands-on Django web application, and for this i have to provide access to some videos; products based on the Customer Membership plan. Like if a Customer is in Basic Plan, then allow only to view 10 videos or so.. and for Permium Customer, no limit.
For such type of requirement, i was trying to create a model class as Customer_membership which will be a one-to-one relationship with my custom Customer model class.
Please suggest, on view and templates how will i be restrict the customer based on their plan.