X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/b4c1e57963e6a646c0d20c6d99dfd667a9952290..b3da7caf287d82e8ee534fa1cd95e73e5a0fce64:/catalogue/models.py?ds=sidebyside diff --git a/catalogue/models.py b/catalogue/models.py index 9bd5f7e..75feba1 100644 --- a/catalogue/models.py +++ b/catalogue/models.py @@ -289,7 +289,7 @@ class Lesson(models.Model): return None def requires_internet(self): - return 'internet' in self.dc.get('requires', []) + return any(requirement in self.dc.get('requires', []) for requirement in ('internet', 'Internet')) class Attachment(models.Model):