| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/db/models/__pycache__/ |
Upload File : |
�
�|�e- � �< � d Z ddlmZ ddlmZmZmZmZ ddlm Z ddl
mZmZ g d�Z
G d� de� � Z G d � d
eee� � Z G d� de� � Z G d
� de� � Z G d� de� � Z G d� dee� � Z G d� dee� � Z G d� dee� � ZdS )z>
Classes to represent the definitions of aggregate functions.
� )�
FieldError)�Case�Func�Star�When)�IntegerField)�FixDurationInputMixin�NumericOutputFieldMixin)� Aggregate�Avg�Count�Max�Min�StdDev�Sum�Variancec � � � e Zd ZdZdZdZdZdZdZddd�� fd�
Z � fd�Z
� fd �Z� fd
�Zd� fd� Z
ed� � � Zdd
�Z� fd�Z� fd�Z� xZS )r z)%(function)s(%(distinct)s%(expressions)s)TNz%s FILTER (WHERE %%(filter)s)F)�distinct�filterc � �� |r#| j st d| j j z � � �|| _ || _ t
� � j |i |�� d S )Nz%s does not allow distinct.)�allow_distinct� TypeError� __class__�__name__r r �super�__init__)�selfr r �expressions�extrar s ��=/usr/lib/python3/dist-packages/django/db/models/aggregates.pyr zAggregate.__init__ s` �� �� U�D�/� U��9�D�N�<S�S�T�T�T� ��
���������+�/��/�/�/�/�/� c �X �� d� t � � � � � D � � S )Nc � � g | ] }|j ��
S � )�_output_field_or_none)�.0�es r �
<listcomp>z/Aggregate.get_source_fields.<locals>.<listcomp>! s � �R�R�R�A��'�R�R�Rr! )r �get_source_expressions�r r s �r �get_source_fieldszAggregate.get_source_fields s'