django-admin-filters 0.1.3

Django Admin Filters

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Jonas Obrist
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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

requirements

#admin changelist #admin filters #Django plugin #admin #changelist #filters #Django

Add your review!

SUBMIT