diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 65ae62bf0e6ccaaea07e59b5b1e1d000beb56c3d..d514a864a7ae809ecc5e35a443d268bcc46c8905 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,6 +13,7 @@ Fixed ~~~~~ * Progress page didn't work properly. +* About page failed to load for apps with an unknown licence. `3.1`_ - 2022-05-30 ------------------- diff --git a/aleksis/core/util/apps.py b/aleksis/core/util/apps.py index 0889280858a64a61cd8857a0c6eef4f872012cfc..e370d6b125242381ab53f6c030c62d41c622d0ff 100644 --- a/aleksis/core/util/apps.py +++ b/aleksis/core/util/apps.py @@ -87,6 +87,10 @@ class AppConfig(django.apps.AppConfig): # Get string representation of licence in SPDX format licence = getattr(cls, "licence", None) + default_flags = { + "isFsfLibre": False, + "isOsiApproved": False, + } default_dict = { "isDeprecatedLicenseId": False, "isFsfLibre": False, @@ -131,7 +135,7 @@ class AppConfig(django.apps.AppConfig): return (readable, flags, licence_dicts) else: # We could not find a valid licence - return ("Unknown", [default_dict]) + return ("Unknown", default_flags, [default_dict]) @classmethod def get_licence_dict(cls):