wagtailmodelchoosers
wagtailmodelchoosers copied to clipboard
A Wagtail app to pick generic models (rather than snippets or pages)
Fixed #24 . Does not feel 100% correct, but I guess it is because react-autocomplete always will call `onSuggestionsClearRequested` when the input box looses focus? I also had to change...
Setting explicit `label` on any `RemoteModelChooserBlock` doesn't work, because the value ends up on https://github.com/springload/wagtailmodelchoosers/blob/39e32d43295ace6d5c9802f88a58ddad84acff8b/wagtailmodelchoosers/blocks.py#L20 but `self.label` gets overwritten in parent [Block.init]( https://github.com/wagtail/wagtail/blob/7c3418f99e7b2c2da7ad19b2840d73099dadc6a7/wagtail/core/blocks/base.py#L99) Also it's mandatory for label to be...
When I search for an instance in the search field, and if I click outside the search input it changes form a list of the results to "Sorry, no results"...
Edit: Checklist moved to PR.
The package depends on [django_filters](https://pypi.python.org/pypi/django-filter) but it is missing from the `setup.py` and/or from the installation instructions. Note: double check the dependency is really needed.
Add a `ordering` list parameter which will be used for the queryset for local models. Not too sure how this should work for remote models.
With the chooser open, the headers disappear as soon as you scroll.