On 2/17/06, Roberto Aguilar <[EMAIL PROTECTED]> wrote:
> In a person model I keep track of a person's address.  I wanted to add
> a list filter, has_address, that shows yes or no depending on if the
> person has an address listed.  I added 'has_address' to the
> list_filter tuple, but it just crashes the page.  I added a column for
> has address as listed in tutorial #2 for "was_published_today":
>
> http://www.djangoproject.com/documentation/tutorial2/
>
> but this does not work for list filters.  Any suggestions?

Hi Roberto,

Custom methods aren't supported in list_filter. In order for that to
work, Django would have to select every single record of the database
and filter them in memory, which is not something we want to do.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to