From 3c1674d821a479e38d70d61dd6feeb709bf18702 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 31 Jan 2017 11:56:16 +0100 Subject: [PATCH 1/1] accept internet/Internet in dc:requires --- catalogue/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.20.1