
    h                     8    S r SSKJr  SSKJr  SSKJr  S rS r	g)zZ
utils.py        # Shared helper functions

See schemas.__init__.py for package overview.
    )models)gettext_lazy)RetrieveModelMixinc                     [        US5      (       a  UR                  S:H  $ UR                  5       S:w  a  g[        U[        5      (       a  gU R                  S5      R                  S5      nU(       a
  SUS   ;   a  gg)	zH
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.13/site-packages/rest_framework/schemas/utils.pyis_list_viewr      so     tX{{f$$||~$*++jjo++C0O3/""55    c                    [        U[        R                  5      (       a  [        S5      nO6[        U[        R                  5      (       a  [        S5      nO[        S5      n[        S5      R                  UU R                  R                  S9$ )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$      su    +v//00-.
	K!1!1	2	2}%
~&
67>>[[%% ?  r   N)
__doc__	django.dbr   django.utils.translationr   r   rest_framework.mixinsr   r   r$    r   r   <module>r*      s   
  6 4$r   