diff -r 1173f42fedfb -r 922fc1545933 src/hdalab/views/pages.py --- a/src/hdalab/views/pages.py Mon Mar 30 11:42:44 2015 +0200 +++ b/src/hdalab/views/pages.py Mon Mar 30 14:55:00 2015 +0200 @@ -31,8 +31,8 @@ 'hda_id': ds.hda_id, 'title': ds.title, 'description': ds.description, - 'organisation_name': ds.organisation.name, - 'organisation_url': ds.organisation.website, + 'organisation_name': ds.organisation.name if ds.organisation else '', + 'organisation_url': ds.organisation.website if ds.organisation else '', 'score': dsscores.get(ds.id,0), } for ds in relatedqs] relatedds = sorted(relatedds, key=lambda ds: -ds['score'])[:MAX_RELATED]