A simple Django app to provide a generic view to filter a ListView
Project description
FilteredListView provides a basic class based view for django to easily filter a ListView. The provided template currently is in german and for bootstrap3.
Quick start
Add “django_filteredlist” to your INSTALLED_APPS:
INSTALLED_APPS = [ ... 'django_filteredlist', ]Create a FilteredListView:
class MyView(FilteredListView, ListView): allowed_filters = ('employee_name', 'project') lookup_expressions = { 'project': 'projects__name__icontains' } verbose_names = (('employee_name', 'Name'), ('project', 'Working on'),)Add search form to your list template:
{% extends 'base.html' %} {% block content %} {{ search }} <!-- YOUR LIST HERE --> {% endblock %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-filteredlist-0.1.tar.gz.
File metadata
- Download URL: django-filteredlist-0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed2cce980b1deb933c62e3b8a5c120855e2c224bde2e87662342816a6a503f6
|
|
| MD5 |
db3ad41e26d6582759b88f46c058bcde
|
|
| BLAKE2b-256 |
7dc57140a7d6215e9a8b977d719906a00d2633144881fecc044b038638596a34
|