o
    uvXjT  ã                   @   s   d d„ Z dS )c              	   C   s|   z.t | tƒr	| }nt | tƒr|  d¡\}}|| ¡ f}n| jj| jjf}t|ƒdks,J ‚|W S  t	t
fy=   t	d|  ƒ‚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
   © r   úS/var/www/html/myproject/venv/lib/python3.10/site-packages/django/db/models/utils.pyÚmake_model_tuple   s    

ÿÿÿr   N)r   r   r   r   r   Ú<module>   s    