You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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)
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? :)
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.
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)
self.declared_holders[key].get_field(path) return KeyError:'0'
Originally posted by @amikphoto in #122 (comment)
The text was updated successfully, but these errors were encountered: