Catalog PyPI
Back to packageRELEASE DETAILS

0.3.1

PyPI

admin-search-plus

Mixin for Django's admin objects to enhance searching by limiting searchable fields

admindjangosearch
Published28 May 2021
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.3.1 documentation

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

  1. Add admin_search_plus to your INSTALLED_APPS before django.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

  2. In admin.py import AdminSearchPlusMixin to add search functions to ModelAdmin.

    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)
    
    

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
Django
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.6",
  "evaluation": "NOT_EVALUATED"
}
Django (>=2.2.9)runtime

Distribution files

2 collected
admin_search_plus-0.3.1-py3-none-any.whl

bdist_wheel · 6.46 KB · Python py3

Source file
admin-search-plus-0.3.1.tar.gz

sdist · 4.9 KB · Python source

Source file

Repository

PENDING
lenders-cooperative/django-admin-search-plus

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e9a004abbef90b945bdd560a9d87d5ec82d4f4f3d80132229b80eaa18496f8cc

Other collected versions

View all collected versions →