Good afternoon, I am trying to make this snippet work: http://djangosnippets.org/snippets/1051/
My files are like this: ###### admin.py from django.contrib import admin from models import Pessoa import filterspec class AdminPessoa(admin.ModelAdmin): list_filter = ['name'] pass admin.site.register(Pessoa, AdminPessoa) ####### models.py from django.db import models class Pessoa(models.Model): name = models.CharField(max_length=100) name.alphabetic_filter = True age = models.PositiveIntegerField() def __unicode__(self): return self.name ####### filterspec.py (the content of the snippet) But I am always getting the error "__init__() got an unexpected keyword argument 'field_path'", If I comment the admin.py line "list_filter = ['name']" the erro doesnt show up anymore, but then the custom filter do not work... Any suggestions? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.