Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still have the problem with new release 1.3.9. It happened when I use selectize widget and when I use active search in the widget and it tries to get answer from backend to get new list of options. #125

Open
amikphoto opened this issue Mar 30, 2024 · 6 comments

Comments

@amikphoto
Copy link

          Still have the problem with new release 1.3.9. It happened when I use selectize widget and when I use active search in the widget and it tries to get answer from backend to get new list of options. 

The problem appears in:

class FormCollection(BaseFormCollection, metaclass=FormCollectionMeta):
"""
Base class for a collection of forms. Attributes of this class which inherit from
django.forms.forms.BaseForm are managed by this class.
"""
def get_field(self, field_path):
path = field_path.split('.', 1)
key, path = path
return self.declared_holders[key].get_field(path)

image

self.declared_holders[key].get_field(path) return KeyError:'0'

Originally posted by @amikphoto in #122 (comment)

@amikphoto
Copy link
Author

I'm sorry to disturb you, but could you tell me is there a problem with selectize widget when we are using it in form collections or it's only my problem? :)

@jrief
Copy link
Owner

jrief commented Apr 5, 2024

Is there a setup where I can reproduce this?

@amikphoto
Copy link
Author

amikphoto commented Apr 5, 2024

you could add selectize widget to your test application in any form collection. For best expirience you should set max_prefetch_choices to 2 (from 250). It helps to find problem with working with backend.

@jrief
Copy link
Owner

jrief commented Apr 5, 2024

This has been fixed now and will work in version 1.3.10

@amikphoto
Copy link
Author

Thank you very much! Yes, the problem is solved. Going to see next one :)

@jrief
Copy link
Owner

jrief commented Apr 7, 2024

Thanks for reporting. Understanding other's use-cases help me to improve the stability of the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants