Skip to content

Use queryish library for results objects#63

Open
gasman wants to merge 1 commit intowagtail:mainfrom
gasman:cleanup/queryish-2
Open

Use queryish library for results objects#63
gasman wants to merge 1 commit intowagtail:mainfrom
gasman:cleanup/queryish-2

Conversation

@gasman
Copy link
Contributor

@gasman gasman commented Jan 26, 2026

queryish is a library I created for wrapping arbitrary datasources with an API that's consistent with Django's queryset - originally so that we could have choosers in Wagtail that pick objects from a REST API instead of the local database. This of course is a good fit for django-modelsearch's BaseSearchResults class.

Refactoring BaseSearchResults on top of Queryish allows us to eliminate a chunk of code, benefit from Queryish's wider unit testing for features like slicing and result caching, and potentially support a larger subset of the Queryset API (.first() is a quick win that works now; with more work it could be possible to support chaining things like .filter and .get after the search clause).

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

Successfully merging this pull request may close these issues.

1 participant