Closed princerb closed 6 months ago
Could someone please explain this? 🤔
I think this is because the convention is to hide attributes that start with "_" (private). Maybe there is a way to expose it, but best will be to rename it to "surname".
It can't be renamed in some cases, so I think there should be a force command to implement it for certain situations.
Have you tried setting ignore_hidden
?
class MyModelView(ModelView):
ignore_hidden = False
I just tried ignore_hidden
, but didn't work, and I guess that setting does not apparently work or has some bugs.
Almost duplicate of #1541
❌ Not a Flask-Admin issue.
if I set
form_columns
to('name', '_surname')
, it only displaysname
in the form page, leaving other columns that starts with the underscore "_" in its name.Example:
Model would look like this (SQLAlchemy):
So, in the form pages (edit, create) of the user, input fields of the columns those start with "_" will not be rendered in html page.
Hope, you found it a new noticable thing!