django-search-placeholder
Auto add placeholder content for django admin
Install
- By git
pip install search-placeholder
Usage
- Add app name to settings
INSTALLED_APPS = [
...
"django.contrib.admin",
...
"search_placeholder",
...
]
- Use search_placeholder.ModelAdmin to replace admin.ModelAdmin
from django.contrib import admin
from search_placeholder import ModelAdmin
@admin.register(ModelClass)
class ModelClassAdmin(ModelAdmin):
# Just inherit from search_placeholder.ModelAdmin
# it will auto generate placeholder of search input by
# the verbose_name of 'field1' and 'field2'
# Or you can uncomment the next line to custom placeholder
#search_placeholder = 'Custom content'
search_fields = ('field1', 'field2')
Metadata
Release files for search-placeholder 0.2.0
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 |
|---|---|---|---|---|
| search_placeholder-0.2.0.tar.gz | 4.7 kB | Without provenance | Details for search_placeholder-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| search_placeholder-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for search_placeholder-0.2.0-py3-none-any.whl |
Total release size: 11.0 kB
Release files / search_placeholder-0.2.0.tar.gz
| Download URL | search_placeholder-0.2.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fb424a78c0eb91f91999cdea9b55232c1367db194d866d150349b67b3955ca5
|
|
BLAKE2b-256 checksum How to use checksums |
71d157c6ff7f15d6da255c5b31c979b8a38665c064f3ea23e09ca68b4a25105a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|
Release files / search_placeholder-0.2.0-py3-none-any.whl
| Download URL | search_placeholder-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4851bcbec6e6eaddddc090ec5df7f66f6efd507c25fc7dcd9bdbbe4a1019c3a0
|
|
BLAKE2b-256 checksum How to use checksums |
3c833ff2c84675a843f34731f5dc17fae6a94d7ff5c0c6c47e5524f4a78cea90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|
Security for search-placeholder 0.2.0
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.