Django-search-admin-autocomplete
Simple django app that add autocomplete to search inside admin panel.
Requirements
Python: 3.5+
Django: >=1.11
Installation
pip install django-search-admin-autocomplete
# OR
pip install git+https://github.com/linevych/django-search-admin-autocomplete.git
INSTALLED_APPS = [
...
'search_admin_autocomplete',
...
]
Usage
from search_admin_autocomplete.admin import SearchAutoCompleteAdmin
class MyModelAdmin(SearchAutoCompleteAdmin)
search_fields = ['search_field', ]
admin.site.register(MyModel, MyModelAdmin)
Customization
If admin/change_list.html is customized
admin.py
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
{% extends 'search_admin_autocomplete/change_list.html' %}
{% block object-tools %}
Your custom html...
{{ block.super }}
{% endblock %}
MyPy
This project supports MyPy but to run type checks you need Python 3.6+.
pip install -r requirements_dev.txt
PYTHONPATH="$PYTHONPATH:$PWD/example" mypy search_admin_autocomplete
Metadata
Release files for django-search-admin-autocomplete 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-search-admin-autocomplete-0.2.1.tar.gz | 24.0 kB | Without provenance | Details for django-search-admin-autocomplete-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_search_admin_autocomplete-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for django_search_admin_autocomplete-0.2.1-py3-none-any.whl |
Total release size: 54.8 kB
Release files / django-search-admin-autocomplete-0.2.1.tar.gz
| Download URL | django-search-admin-autocomplete-0.2.1.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dec18da377b210e6eb45173eb9681bfd74b3d04864289cdd39e2f35922521cf
|
|
BLAKE2b-256 checksum How to use checksums |
e27ef99583564cff32b63baf1e0cefb87b154e1658dd6c46613a4174576ec695
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3
|
Release files / django_search_admin_autocomplete-0.2.1-py3-none-any.whl
| Download URL | django_search_admin_autocomplete-0.2.1-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e81fceb17b98b88c26961ba458595d805551073a08df68f074735c9cd7cde19
|
|
BLAKE2b-256 checksum How to use checksums |
6d71e229a7549c7521b3f7eab2d9d498fa72148917c0dbd1d27123f7b07045f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3
|
Security for django-search-admin-autocomplete 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.