Commit e7b34248 authored by Zenon Mousmoulas's avatar Zenon Mousmoulas

further simplify bede5c80

parent c9d752bc
......@@ -1670,12 +1670,9 @@ def participants(request):
for i in institutions:
if i.institutiondetails is None:
continue
try:
dets.append(i.institutiondetails)
if i.get_active_cat_enrl():
cat_exists = True
except InstitutionDetails.DoesNotExist:
pass
dets.append(i.institutiondetails)
if i.get_active_cat_enrl():
cat_exists = True
return render_to_response(
'front/participants.html',
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment