A Django admin app to search by specific field instead of all fields
Project description
Django Admin SBF is a Django admin app to customise the default search functionality to search by specific field instead of all the fields. This helps in reducing the SQL query overload when there are too much data to process and multiple fields to search from.
Detailed documentation is in the “docs” directory.
Quick start
Install
pip install django-admin-sbf
Add “django_admin_sbf” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_admin_sbf', ]
Extent the admin class for any model using DjangoAdminSBF instead of ModelAdmin
Define search_fields same as Django default.
Screenshots
Example
@admin.register(Education)
class EducationAdmin(DjangoAdminSBF):
search_fields = [
'course',
'subject
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-admin-sbf-0.5.tar.gz
.
File metadata
- Download URL: django-admin-sbf-0.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd9f7d2ca990ae6d7afe1dc6f97d516eb30345331a84c7e6a54f23c88c2026f |
|
MD5 | 10dbd1b541030cdb8a5a24f22383478d |
|
BLAKE2b-256 | 3e3645e864b1f6dd1496f29cc7058367199991be5ec38692897cf7b49b4bc64e |
File details
Details for the file django_admin_sbf-0.5-py3-none-any.whl
.
File metadata
- Download URL: django_admin_sbf-0.5-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e662d1520c2032854120662020edce2a0b9ab73df4b0a82a570316794ec2358b |
|
MD5 | aeb97b5e3e468754a5312b0f35eb3b87 |
|
BLAKE2b-256 | 61ccfb492c055b7c6189d6d227c6c248be02545dedff6331d7a1681288c849a7 |