jrief / django-formset

The missing widgets and form manipulation library for Django
https://django-formset.fly.dev/
MIT License
317 stars 30 forks source link

Selectize and SelectizeMultiple options are capped to 250 options #104

Closed codematsing closed 8 months ago

codematsing commented 8 months ago

Is there a way to expand the number of options in selectize and selectmultiple?

I checked the number of items in my queryset and the result is 521

I also checked html rendering of selectize and the options are capped to value="250"

I was wondering if there is a way to show all 521 still? Thank you

codematsing commented 8 months ago

closing this. I just din an override of your widget and used the custom one instead

class CustomSelectize(Selectize):
    max_prefetch_choices = #some number
    # customize due to cap of original

class CustomSelectizeMultiple(SelectizeMultiple):
    max_prefetch_choices = #some number
    # customize due to cap of original