fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6f780f
)
accept internet/Internet in dc:requires
author
Jan Szejko
<janek37@gmail.com>
Tue, 31 Jan 2017 10:56:16 +0000
(11:56 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 31 Jan 2017 10:56:16 +0000
(11:56 +0100)
catalogue/models.py
patch
|
blob
|
history
diff --git
a/catalogue/models.py
b/catalogue/models.py
index
9bd5f7e
..
75feba1
100644
(file)
--- a/
catalogue/models.py
+++ b/
catalogue/models.py
@@
-289,7
+289,7
@@
class Lesson(models.Model):
return None
def requires_internet(self):
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):
class Attachment(models.Model):