anfema_django_utils.db.functions

Classes

Epoch

Postgres function to extract the epoch (i.e.

ExtractPathText

Postgres specific function to extract text from a JSONField at the specified path.

NormalizeUmlauts

Function to replace german umlauts in strings ('ä' -> 'ae'...).

RegexpReplace

Postgres function to substitute text using regular expressions.

SubquerySum

Useful for subquery-sum aggregations in query annotations: Requires a subquery, column name and output_field type.