Begin implementing Drilldown functionality
This commit is contained in:
@@ -25,5 +25,7 @@ class User(AbstractUser):
|
||||
plans = models.ManyToManyField(Plan, blank=True)
|
||||
|
||||
def has_plan(self, plan):
|
||||
if not self.paid: # We can't have any plans if we haven't paid
|
||||
return False
|
||||
plan_list = [plan.name for plan in self.plans.all()]
|
||||
return plan in plan_list
|
||||
|
||||
Reference in New Issue
Block a user