Skip to content
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

管理表 保存失败 #73

Closed
JoffreyN opened this issue Oct 21, 2021 · 2 comments
Closed

管理表 保存失败 #73

JoffreyN opened this issue Oct 21, 2021 · 2 comments

Comments

@JoffreyN
Copy link

JoffreyN commented Oct 21, 2021

Internal Server Error: /api/source/tables/save
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
    response = get_response(request)
  File "C:\Program Files\Python38\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Program Files\Python38\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "C:\Users\zp\mystuff\vueDataBoard\py_vislib\vislib\views\source.py", line 154, in sourceTableSave
    table_alias=table['table_alias'],
KeyError: 'table_alias'
@JoffreyN
Copy link
Author

image

不知道这个别名是干啥的,我直接改成等于表名了

@dongsuo
Copy link
Owner

dongsuo commented Oct 28, 2021

table_alias 可以用于指定表的别名,因为很多时候表名对于用户来说并不易读

@dongsuo dongsuo closed this as completed Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants