Admin Search Plus
Admin Search Plus is a AdminMixin for Django that limits searches to specific fields which greatly enhances performance when working on large datasets.
Installation
$ pip install admin-search-plus
Or through github:
$ pip install -e git://github.com/Lenders-Cooperative/admin-search-plus#egg=admin-search-plus
Building from source
$ python -m build
$ pip install admin_search_plus.whl
Usage
-
Add
admin_search_plusto yourINSTALLED_APPSbeforedjango.contrib.admin:INSTALLED_APPS = [ 'app_to_be_overrided', ... 'admin_search_plus', ... 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ]NOTE: To override a template, the app should be listed before
admin_search_plus -
In
admin.pyimportAdminSearchPlusMixinto add search functions toModelAdmin.from admin_search_plus import AdminSearchPlusMixin class YourModelAdmin(AdminSearchPlusMixin, admin.ModelAdmin): admin_search_plus = True show_full_result_count = False show_result_count = False admin.site.register(YourModel, YourModelAdmin)
Metadata
Release files for admin-search-plus 0.3.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 |
|---|---|---|---|---|
| admin-search-plus-0.3.1.tar.gz | 5.0 kB | Without provenance | Details for admin-search-plus-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| admin_search_plus-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for admin_search_plus-0.3.1-py3-none-any.whl |
Total release size: 11.6 kB
Release files / admin-search-plus-0.3.1.tar.gz
| Download URL | admin-search-plus-0.3.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c6815a8203dfed00d0b06d0126453075a1e74a5958c28e8c5788702df26528b
|
|
BLAKE2b-256 checksum How to use checksums |
3ad0a9324aa65e8ad207d049b879786d28a6b3c45ec79944d27bff2dc41632cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3
|
Release files / admin_search_plus-0.3.1-py3-none-any.whl
| Download URL | admin_search_plus-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f26c963cadd140d44ba76a864ae982f81621f20ddea076a47215d2097d80b56
|
|
BLAKE2b-256 checksum How to use checksums |
71a211518c8127474ce22c2691a400c7312452d2663f7211066f49fc2ee4eadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3
|
Security for admin-search-plus 0.3.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.