| 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 : |
�
�|�eL � �\ � d dl Z d dlmZ d� Zd� Zd� Z e j � � d� � � ZdS )� N)�
namedtuplec �h � t | t � � r| }n\t | t � � r/| � d� � \ }}||� � � f}n| j j | j j f}t |� � dk sJ �|S # t t f$ r t d| z � � �w xY w)z�
Take a model or a string of the form "app_label.ModelName" and return a
corresponding ("app_label", "modelname") tuple. If a tuple is passed in,
assume it's a valid model tuple already and return it unchanged.
�.� z`Invalid model reference '%s'. String model references must be of the form 'app_label.ModelName'.)�
isinstance�tuple�str�split�lower�_meta� app_label�
model_name�len�
ValueError�AssertionError)�model�model_tupler
r s �8/usr/lib/python3/dist-packages/django/db/models/utils.py�make_model_tupler s� � �
��e�U�#�#� H��K�K�
��s�
#�
#� H�$)�K�K��$4�$4�!�I�z�#�Z�%5�%5�%7�%7�7�K�K��+�/���1G�G�K��;���1�$�$�$�$������'�
�
�
��
9�;@�
A�
�
�
�
���s �B
B
�
$B1c # �| K � | � � � D ]$\ }}|t |� � r
|� � n|fV � �%dS )zp
Generate key/value pairs for the given mapping where the values are
evaluated if they're callable.
N)�items�callable)�mapping�k�vs r �resolve_callablesr sV � � � �
�
�
��� +� +���1������*�������*�*�*�*�*�+� +� c � � t | � |� S �N)�create_namedtuple_class)�names�valuess r �unpickle_named_rowr# % s � �*�"�E�*�F�3�3r c �T � � � fd�}t dt d� � � f|dd�� � S )Nc �4 �� t �t | � � ffS r )r# r )�selfr! s �r �
__reduce__z+create_namedtuple_class.<locals>.__reduce__- s �� �!�E�5��;�;�#7�7�7r �Row� )r'