
    >Tf                     Z    d dl mZ d dlmZ dZ G d de          Z G d de          ZdS )	    )JSONBAgg)Func)CollateAsCharEmptyGroupByJSONBAggc                       e Zd ZdZdZdZdS )r   z}
    Disregard localization by collating a field as a plain character string. Helpful for ensuring predictable ordering.
    Cz((%(expressions)s) COLLATE "%(function)s"N)__name__
__module____qualname____doc__functiontemplate     >/var/www/html/netbox-4.1.3/netbox/utilities/query_functions.pyr   r   
   s$          H9HHHr   r   c                       e Zd ZdZdZdS )r   a'  
    JSONBAgg is a builtin aggregation function which means it includes the use of a GROUP BY clause.
    When used as an annotation for collecting config context data objects, the GROUP BY is
    incorrect. This subclass overrides the Django ORM aggregation control to remove the GROUP BY.
    FN)r	   r
   r   r   contains_aggregater   r   r   r   r      s"         
 r   r   N)"django.contrib.postgres.aggregatesr   django.db.modelsr   __all__r   r   r   r   r   <module>r      s    7 7 7 7 7 7 ! ! ! ! ! !: : : : :D : : :    8     r   