I have models A and B, where B has a FK to A.
I use django 1.3 and I need two django admin filters:
1) a.b_set.exists() # (True/False)
2) not a.b_set.filter(some_condition=False).exists() # (True/False)
How can I achieve that? Sadly, I couldn’t find any solutions by googling.
You need to read this: Custom Filter in Django Admin on Django 1.3 or below
This is my first attempt without any testing, but you should see more or less how its done –