Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

  1. Add “django_filteredlist” to your INSTALLED_APPS:

  2. 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'),)
  3. 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

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-filteredlist, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-filteredlist-0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page