I need to get the method output list_filterin the admin panel of the Django1.3 installation (where the class SimpleListFilteris not yet present).
I could create such a filter if I could annotate a variable is_activewhile typing a query. Like raw sql it will look like this:
SELECT *, active AND (end > NOW() OR end IS NULL) AND start < NOW() as is_active FROM app_model;
However, if I return it using the querysetadmin class method , this will cause errors.
Is there a way to get my raw sql annotation into the correct django query set?
source
share