pallets-eco / flask-admin

Simple and extensible administrative interface framework for Flask
https://flask-admin.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5.78k stars 1.57k forks source link

Sort order of inline models in the form (SQLA)? #1493

Open v-ken opened 7 years ago

v-ken commented 7 years ago

Hi,

Thanks again for this awesome library. Was just wondering if there was a way to specify the sort order of inline models that shows up when editing its parent model?

datnguyen0606 commented 7 years ago

@v-ken I'm looking for the same question. Do you know how to sort the inline models yet?

I think one way is to set order_by in db.relationship in models