Model validator does not allow parent fields for Admin list_filter
|Reported by:||simon@…||Owned by:||adrian|
|Severity:||Keywords:||Admin list_filter model inheritance validator|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Admin list_filter doesn't seem to recognise fields inherited from a model's base class.
Here is a patch which fixes that, along the same lines as list_display.
NOTE, this patch also includes another one called list_filter.diff, which allows related fields in list_filter.
BTW, my two cents worth on model inheritance is 'keep it simple'. Do nothing with database views/relations etc unless specified. Obviously those features would be great but aren't suitable for all cases.