sqladmin icon indicating copy to clipboard operation
sqladmin copied to clipboard

Asynchronous loading altertive to `QuerySelectField`

Open okapies opened this issue 2 years ago • 2 comments

Checklist

  • [X] There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

I need a QuerySelectField alternative that can fetch a limited number of items on demand like autocomplete_fields in Django admin, instead of loading entire records of the related (possibly very huge) table when rendering the page.

Describe the solution you would like.

No response

Describe alternatives you considered

No response

Additional context

No response

okapies avatar Jun 21 '22 04:06 okapies

Hi @okapies That would be form_ajax_refs and it's a WIP in https://github.com/aminalaee/sqladmin/pull/149. It needs a bit of change in the main logic but definitely a must-have.

aminalaee avatar Jun 21 '22 06:06 aminalaee

#272

masksshow avatar Aug 07 '22 15:08 masksshow

Merged in https://github.com/aminalaee/sqladmin/pull/292 and will be available in 0.5.0.

aminalaee avatar Sep 06 '22 10:09 aminalaee