I have a Flask-Admin list view (ModelView) of my user model with some fields excluded, custom headers, etc. Everything's working correctly and I've overridden the default list template so I can match the styling of the rest of the application.
However, my foreign key columns appear at the beginning of the list, and I need to move them around so the table makes a bit more sense.
How do I specify what order the columns appear in? Is this possible, or do I just need to add some nasty conditionals in my list template?
Define the column_list. You define which columns appear and their order.
Example:
column_list = ['id', 'name', 'other_column']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With