Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

admin: search #638

Open
rochacbruno opened this issue Feb 7, 2018 · 2 comments
Open

admin: search #638

rochacbruno opened this issue Feb 7, 2018 · 2 comments

Comments

@rochacbruno
Copy link
Collaborator

Add search to pymongo/tinymongo in admin
rochacbruno-archive/quokka_ng#33

@BenTHR
Copy link

BenTHR commented Feb 23, 2018

Hi @rochacbruno I'm new here in Github, and I want to help with implementation of this feature,
can you please calarify more how can I contribute?

@rochacbruno
Copy link
Collaborator Author

Hi @BenTHR

In Quokka we have this Flask-Admin Model View
https://github.com/rochacbruno/quokka/blob/master/quokka/admin/views.py#L49

If you run the project you will see that in admin we have no search form, because it is disabled and must be enabled here: https://github.com/rochacbruno/quokka/blob/master/quokka/core/content/admin.py#L14

by adding

column_searchable_list = ['title', 'author', 'tags', 'category']
column_filters = ['published']

with the above change the Search form will show, but the problem is that it does not work with tinymongo and has some problems with pymongo

So we need to override the methods init_search on https://github.com/rochacbruno/quokka/blob/master/quokka/admin/views.py#L49 and make the needed changes to make it to work.

Another issue is that some of the pymongo features are still missing in tinymongo as you can see in: schapman1974/tinymongo#42 (looks like support has been added but needs testing)

So this issue may require some pR to be sent to Tinymongo.

Any progress we make to add search to admin will be good!

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

No branches or pull requests

2 participants