
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.