-
-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writable canned queries fail to load custom templates #1547
Comments
Yes, this is a bug. It looks like the problem is with the datasette/datasette/views/database.py Lines 252 to 327 in 5fac26a
Is missing this bit of code: datasette/datasette/views/database.py Lines 343 to 347 in 5fac26a
|
I released this in an alpha, so you can try out this fix using:
|
I've installed the alpha version but get an error when starting up Datasette:
|
OK, this should hopefully fix that for you:
|
Yep, that works -- thanks! |
I've created a canned query with
"write": true
set. I've also created a custom template for it, but the template doesn't seem to be found. If I look in the HTML I see (stock_exchange
is the db name):<!-- Templates considered: query-stock_exchange.html, *query.html -->
My non-writeable canned queries pick up custom templates as expected, and if I look at their HTML I see the canned query name added to the templates considered (the canned query here is
date_search
):<!-- Templates considered: query-stock_exchange-date_search.html, query-stock_exchange.html, *query.html -->
So it seems like the writeable canned query is behaving differently for some reason. Is it an authentication thing? I'm using the built in
--root
authentication.Thanks!
The text was updated successfully, but these errors were encountered: