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
django-admin-sbf-0.3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for django_admin_sbf-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1734ca8c6fe8a1404f22a27d274946270577e53688191964af56d562c0f918e |
|
MD5 | 9d9acfa1ab88ecc00f66a5e594bc19f7 |
|
BLAKE2b-256 | 4fa730c95158bcb5873dc5f35820afe7f213b71e6bbcc03c82655c7d30b0a00c |