Discussed in #1031
Originally posted by teal-clover April 17, 2026
I have User which is tied to Company through "company_id" field.
I don't like default dropdowns bc they get too big if not using ajax feature, but if using ajax feature it seems I cannot set None as value for field.
Here is the code and the admin
class UserAdmin(ModelView, model=User):
...
form_columns = ["email", "company_id"]
Edit by @mmzeynalli :
During build-up, we are setting data-allow-blank to 1, but never using it in JS.
Discussed in #1031
Originally posted by teal-clover April 17, 2026
I have User which is tied to Company through "company_id" field.
I don't like default dropdowns bc they get too big if not using ajax feature, but if using ajax feature it seems I cannot set None as value for field.
Here is the code and the admin
Edit by @mmzeynalli :
During build-up, we are setting
data-allow-blankto1, but never using it in JS.