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

Add search_fields on Django admin page #172

Closed
appukuttan-shailesh opened this issue Apr 16, 2018 · 2 comments
Closed

Add search_fields on Django admin page #172

appukuttan-shailesh opened this issue Apr 16, 2018 · 2 comments

Comments

@appukuttan-shailesh
Copy link
Collaborator

appukuttan-shailesh commented Apr 16, 2018

Here in this file: https://github.com/HumanBrainProject/hbp-validation-framework/blob/ea0368c41c06fa81a9a1463dd5507a92902a077c/model_validation_api/admin.py

Similar to how ValidationTestDefinitionAdmin and ValidationTestResultAdmin have search_fields and filters, we should have the same for Models, Model Instances, Model Images etc.... this makes it easier for admins to find and delete unwanted entries.

Also, it would be really useful if the UUIDs are included in the search_fields and filters for all the entities.

HFragnaud added a commit to HFragnaud/hbp-validation-framework_dev that referenced this issue Jun 19, 2018
HFragnaud added a commit that referenced this issue Jun 19, 2018
@appukuttan-shailesh
Copy link
Collaborator Author

@HFragnaud : I think this was partially implemented? It seems to throw errors when searching.

TypeError at /admin/model_validation_api/scientificmodel/
Related Field got invalid lookup: icontains

@apdavison
Copy link
Member

Django admin interface no longer useful since move to KG, will disappear entirely with v2.

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

No branches or pull requests

2 participants