Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
django-search-admin-autocomplete
Advanced tools
Simple django app that add autocomplete to search inside admin panel.
Simple django app that add autocomplete to search inside admin panel.
.. image:: https://raw.githubusercontent.com/linevych/django-search-admin-autocomplete/master/doc/demo.gif
.. code-block:: bash
pip install django-search-admin-autocomplete
# OR
pip install git+https://github.com/linevych/django-search-admin-autocomplete.git
.. code-block:: python
INSTALLED_APPS = [
...
'search_admin_autocomplete',
...
]
.. code-block:: python
from search_admin_autocomplete.admin import SearchAutoCompleteAdmin
class MyModelAdmin(SearchAutoCompleteAdmin)
search_fields = ['search_field', ]
admin.site.register(MyModel, MyModelAdmin)
If admin/change_list.html is customized
admin.py
.. code-block:: python
from search_admin_autocomplete.admin import SearchAutoCompleteAdmin
class MyModelAdmin(SearchAutoCompleteAdmin)
change_list_template = 'admin/custom-list.html'
search_fields = ['search_field', ]
admin.site.register(MyModel, MyModelAdmin)
admin/custom-list.html
.. code-block:: html
{% extends 'search_admin_autocomplete/change_list.html' %}
{% block object-tools %}
Your custom html...
{{ block.super }}
{% endblock %}
This project supports MyPy but to run type checks you need Python 3.6+.
.. code-block:: python
pip install -r requirements_dev.txt
PYTHONPATH="$PYTHONPATH:$PWD/example" mypy search_admin_autocomplete
FAQs
Simple django app that add autocomplete to search inside admin panel.
We found that django-search-admin-autocomplete demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.