send back to the template the correct api url corresponding to the current exposition
authorrougeronj
Thu, 16 Jul 2015 15:14:27 +0200
changeset 183 8e26a5511bb8
parent 182 bb6a5b3eb269
child 184 4d01c2d04359
send back to the template the correct api url corresponding to the current exposition
server/ammicosrv/ammico/views.py
--- a/server/ammicosrv/ammico/views.py	Wed Jul 08 17:59:04 2015 +0200
+++ b/server/ammicosrv/ammico/views.py	Thu Jul 16 15:14:27 2015 +0200
@@ -94,7 +94,7 @@
                 'token': key,
                 'idExpo': idExpo,
                 'ammicoUrl': request.build_absolute_uri(reverse('ammico:api-root')),
-                'searchUrl': settings.URL_EXALEAD
+                'searchUrl': Exposition.objects.get(id=idExpo).url_exalead
             }
             return render(request, 'indexAmmico.html', {'context': context})
         else: