Django custom annotation function
You can’t use python functions for annotations. Annotation is a computation that is done on a database level. Django provides you only a set of basic computations which can be processed by the database – SUM, AVERAGE, MIN, MAX and so on… For more complex stuffs only from version 1.8 we have an API for … Read more