Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peppelinux/django-admin-search-builder
Django app that makes you able to build advanced queries via admin filters UI
https://github.com/peppelinux/django-admin-search-builder
django django-application filters
Last synced: 3 months ago
JSON representation
Django app that makes you able to build advanced queries via admin filters UI
- Host: GitHub
- URL: https://github.com/peppelinux/django-admin-search-builder
- Owner: peppelinux
- License: apache-2.0
- Created: 2020-05-28T13:55:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T11:44:12.000Z (over 4 years ago)
- Last Synced: 2024-10-12T07:34:39.692Z (3 months ago)
- Topics: django, django-application, filters
- Language: Python
- Size: 60.5 KB
- Stars: 25
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-admin-search-builder
Django app that makes you able to build advanced queries via admin filters UIThis Application aims to give you the faster and easier way to build and run advanced queries through the Django Admin ModelAdmin User Interface, using Django's ORM. See the example project and the gallery.
### Setup
````
pip install django-admin-search-builder
````in `settings.INSTALLED_APPS` add
````
'admin_adv_search_builder',
````in your ModelAdmin, use the following example
````
from admin_adv_search_builder.filters import AdvancedSearchBuilder
from django.contrib import adminfrom . models import Identity
@admin.register(Identity)
class IdentityAdmin(admin.ModelAdmin):
list_filter = (AdvancedSearchBuilder,)
````#### Example
````
pip install -r requirements.xtcd example
./manage.py migrate
./manage.py createsuperuser
./manage.py loaddata identity_dumps.json
./manage.py runserver
````#### Gallery
![Alt text](images/1.png)#### Authors
Giuseppe De Marco