The Django docs describe how to create custom list_filter options via your 
own classes:

https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter


On Thursday, 6 June 2019 08:40:23 UTC+2, Lachlan Musicman wrote:
>
>
> On Thu, 6 Jun 2019 at 16:36, Lachlan Musicman <dat...@gmail.com 
> <javascript:>> wrote:
>
>> Hola,
>>
>> I seem to remember when list_filter did booleans - does it no longer?
>>
>
>
> Oh. I see that it does - if it's a BooleanField, but not for a method on 
> the Model class?
>
>   
> ------
> "The fact that you're still saying something like 'feminism gone mad' 
> suggests that feminism hasn't gone mad ENOUGH yet."
>
> Helen Zaltzman / @HelenZaltzman 
> https://twitter.com/HelenZaltzman/status/1065384934846545920
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/594d9843-45a6-49fd-bc6a-a7b5becbc6d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to