← Back
Editing: comparison.cpython-311.pyc
� �|�e� � � � d Z ddlmZ ddlmZmZ ddlmZ ddlm Z G d� de� � Z G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )z;Database functions that do comparisons or type conversions.� )�NotSupportedError)�Func�Value)� JSONField)�_lazy_re_compilec �N � � e Zd ZdZdZdZ� fd�Z� fd�Z� fd�Zd� Z � fd�Z � xZS ) �Castz)Coerce an expression to a new field type.�CASTz,%(function)s(%(expressions)s AS %(db_type)s)c �N �� t � � � ||�� � d S )N)�output_field)�super�__init__)�self� expressionr � __class__s ��G/usr/lib/python3/dist-packages/django/db/models/functions/comparison.pyr z Cast.__init__ s&