Fix missing variable
This commit is contained in:
parent
ad34cf50cf
commit
5c944c09db
|
|
@ -367,7 +367,7 @@ class License(models.Model):
|
||||||
if not is_aware(expiry_date):
|
if not is_aware(expiry_date):
|
||||||
expiry_date = make_aware(expiry_date)
|
expiry_date = make_aware(expiry_date)
|
||||||
|
|
||||||
return expiry_date >= now >= expiry_date - timedelta(days=MYSKILLBOX_LICENSES[isbn]['duration'])
|
return expiry_date >= now >= expiry_date - timedelta(days=licenses[isbn]['duration'])
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'License for role: {self.for_role}'
|
return f'License for role: {self.for_role}'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue