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.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80533c17-f969-4462-b8bb-dda76cac5ec2n%40googlegroups.com.
No comments:
Post a Comment