
    ^f                     :    d Z ddlmZ ddlmZ ddlmZ d Zd Z	dS )zZ
utils.py        # Shared helper functions

See schemas.__init__.py for package overview.
    )models)gettext_lazy)RetrieveModelMixinc                 
   t          |d          r|j        dk    S |                                dk    rdS t          |t                    rdS |                     d                              d          }|rd|d         v rdS dS )	zP
    Return True if the given path/method appears to represent a list view.
    actionlistgetF/{T)hasattrr   lower
isinstancer   stripsplit)pathmethodviewpath_componentss       N/var/www/html/env/lib/python3.11/site-packages/rest_framework/schemas/utils.pyis_list_viewr      s     tX %{f$$||~~u$*++ ujjoo++C00O 3/""555u4    c                 $   t          |t          j                  rt          d          }n9t          |t          j                  rt          d          }nt          d          }t          d                              || j        j                  S )Nzunique integer valuezUUID stringzunique valuez'A {value_type} identifying this {name}.)
value_typename)r   r   	AutoField_	UUIDFieldformat_metaverbose_name)modelmodel_fieldr   s      r   get_pk_descriptionr$      s    +v/00 '-..

	K!1	2	2 '}%%

~&&
677>>[% ?   r   N)
__doc__	django.dbr   django.utils.translationr   r   rest_framework.mixinsr   r   r$    r   r   <module>r*      so    
       6 6 6 6 6 6 4 4 4 4 4 4  $    r   