Open berycz opened 12 months ago
in form.py in choice_queryset__extra__filter_and_sort there is
form.py
choice_queryset__extra__filter_and_sort
if not value: return field.choices.order_by(*field.search_fields)
which overrides the passed/default order I think it should not do that, either leave it to the dev or let it use the Model._meta.ordering
or for backwards compatibility add an extra parameter for that
extra
in
form.py
inchoice_queryset__extra__filter_and_sort
there iswhich overrides the passed/default order I think it should not do that, either leave it to the dev or let it use the Model._meta.ordering