Skip to content

Commit

Permalink
[#2575] better fix including other licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and amercader committed Jun 20, 2012
1 parent b30ccd9 commit 01b4a05
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ckan/model/license.py
Expand Up @@ -46,7 +46,12 @@ def __init__(self):
if group_url:
self.load_licenses(group_url)
else:
default_license_list = [
self.licenses = self.get_license_info

@property
def get_license_info(self):
# this allows the license info to be localised see #2575
default_license_list = [
{
"domain_content": False,
"domain_data": False,
Expand Down Expand Up @@ -249,7 +254,7 @@ def __init__(self):
"url": ""
}
]
self._create_license_list(default_license_list)
return [License(entity) for entity in default_license_list]

def load_licenses(self, license_url):
try:
Expand Down

0 comments on commit 01b4a05

Please sign in to comment.