
    h=                         d  Z d Zy)c                 V   	 t        | t              r| }nct        | t              r'| j                  d      \  }}||j	                         f}n,| j
                  j                  | j
                  j                  f}t        |      dk(  sJ |S # t        t        f$ r t        d| z        w xY 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       Y/var/www/html/ranktracker/api/venv/lib/python3.12/site-packages/django/db/models/utils.pymake_model_tupler      s    
eU#Ks#$)KK$4!Iz#Z%5%5%77K++//1G1GGK;1$$$' 
9;@A
 	

s   BB
 
B(c              #   l   K   | j                         D ]  \  }}|t        |      r |       n|f  yw)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      s6     
  +1**+s   24N)r   r        r   <module>r      s   
.+r   