Explorar el Código

[metastore] Index redirects to the default database

Enrico Berti hace 10 años
padre
commit
5323d89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/metastore/src/metastore/views.py

+ 1 - 1
apps/metastore/src/metastore/views.py

@@ -59,7 +59,7 @@ def check_has_write_access_permission(view_func):
 
 
 def index(request):
-  return redirect(reverse('metastore:show_tables'))
+  return redirect(reverse('metastore:show_tables', kwargs={'database': request.COOKIES.get('hueBeeswaxLastDatabase', 'default')}))
 
 
 """