From 99e4694f2919903943a6d16b4a6b55d92f0005fe Mon Sep 17 00:00:00 2001 From: Robert R Date: Fri, 6 Mar 2020 12:18:27 +0200 Subject: [PATCH 1/2] [AL-1418] Fix for lesson pages throwing a 500 error --- curricula/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curricula/utils.py b/curricula/utils.py index 97eb737..3827349 100644 --- a/curricula/utils.py +++ b/curricula/utils.py @@ -195,7 +195,7 @@ def activities_info(ids, l_id=None): learning_objs |= set([objrel.objective for objrel in objectives_list]) resources |= set(activity.resources.all().values_list('object_type_id', 'object_id')) - if activity.internet_access_type > inet_access: + if activity.internet_access_type and activity.internet_access_type > inet_access: inet_access = activity.internet_access_type plugins |= set(activity.plugin_types.values_list('id', flat=True)) tech |= set(activity.tech_setup_types.values_list('id', flat=True)) From 42c8bd961793494918adf413cf8506bb394f9adb Mon Sep 17 00:00:00 2001 From: Robert R Date: Fri, 6 Mar 2020 12:26:33 +0200 Subject: [PATCH 2/2] [AL-1418] Bump version --- curricula/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curricula/__init__.py b/curricula/__init__.py index 603d0b1..fd62dbe 100644 --- a/curricula/__init__.py +++ b/curricula/__init__.py @@ -4,7 +4,7 @@ __version_info__ = { 'major': 3, 'minor': 0, - 'micro': 0, + 'micro': 1, 'releaselevel': 'final', 'serial': 1, }