Skip to content

Commit

Permalink
deactivated inline edit for user
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Mar 22, 2024
1 parent 639c5da commit 616a4fa
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Snackbar/Adminpage/MyUserModelView.py
Expand Up @@ -11,20 +11,19 @@ class MyUserModelView(ModelView):
column_exclude_list = ['history', 'inpayment', ]
form_excluded_columns = ['history', 'inpayment']
can_set_page_size = True

can_edit = True
column_editable_list = ('imageName',)
# column_descriptions = dict(
# firstName='Name of the corresponding person'
# )

can_edit = True
# column_editable_list = ('imageName',)
base_path = app.config['IMAGE_FOLDER']
# form_overrides = dict(imageName=FileUploadField)
# form_args = {
# 'imageName': {
# 'base_path': base_path
# }
# }
form_overrides = dict(imageName=FileUploadField)
form_args = {
'imageName': {
'base_path': base_path
}
}

column_labels = dict(firstName='First Name',
lastName='Last Name',
Expand Down

0 comments on commit 616a4fa

Please sign in to comment.