anfema_django_utils.db.functions.ExtractPathText
- class ExtractPathText(json_field_path, **extra)
Bases:
django.db.models.Func
Postgres specific function to extract text from a JSONField at the specified path.
- Usage:
ExtractPathText('jsonfield__path__to__key')
Methods
Attributes
- function = 'jsonb_extract_path_text'
- output_field