I want to annotate results with the last time a page was displayed and then sort in descendant order. Unfortunately when there is no such date I get None which messes the order by juping in front.
When I tried to use max(i.created) if i.created else datetime(1970,1,1) I got Expression is too complex to decompile error
I want to annotate results with the last time a page was displayed and then sort in descendant order. Unfortunately when there is no such date I get None which messes the order by juping in front.
When I tried to use
max(i.created) if i.created else datetime(1970,1,1)I gotExpression is too complex to decompileerror