django-admin-filters 0.1.3

Django Admin Filters
django-admin-filters allows you to use generic filters for the admin changelist view.

Example:

  from adminfilters.admin import GenericFilterAdmin
  from django.contrib.admin.filterspec import FilterSpec


  class SomeFilterSpec(FilterSpec):
    def __init__(self, request, changelist):
      """
      Your filter spec code here
      """

    def choices(self, changelist):
      """
      Your choices generator here
      """

  class MyAdmin(GenericFilterAdmin):
    generic_filters = ('get_my_filter',)

    def get_my_filter(self, request, changelist):
      return SomeFilterSpec(request, changelist)

last updated on:
May 6th, 2010, 9:23 GMT
price:
FREE!
developed by:
Jonas Obrist
homepage:
github.com
license type:
Other/Proprietary License
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT