Commit 95dd7630e761712884279404188b8de23d9100f7

Authored by Felipe Bormann
1 parent 8b5dead5

fixing resource selector because of missing variable

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
reports/views.py
@@ -587,7 +587,7 @@ def get_resources(request): @@ -587,7 +587,7 @@ def get_resources(request):
587 mapping['webconference'] = str(_('Web Conference')) 587 mapping['webconference'] = str(_('Web Conference'))
588 mapping['ytvideo'] = str(_('YouTube Video')) 588 mapping['ytvideo'] = str(_('YouTube Video'))
589 mapping['webpage'] = str(_('WebPage')) 589 mapping['webpage'] = str(_('WebPage'))
590 - 590 + data = {}
591 data['resources']= [ {'id':resource_type, 'name':mapping[resource_type]} for resource_type in resources] 591 data['resources']= [ {'id':resource_type, 'name':mapping[resource_type]} for resource_type in resources]
592 return JsonResponse(data) 592 return JsonResponse(data)
593 593