
    h                        S r SSKrSSKJr   " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r	 " S S\	5      r
 " S S\	5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r " S( S)\5      rS*r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      rg)3z.
Global Django exception and warning classes.
    N)make_hashablec                       \ rS rSrSrSrg)FieldDoesNotExist
   z(The requested model field does not exist N__name__
__module____qualname____firstlineno____doc____static_attributes__r       H/var/www/html/env/lib/python3.13/site-packages/django/core/exceptions.pyr   r   
       2r   r   c                       \ rS rSrSrSrg)AppRegistryNotReady   z-The django.apps registry is not populated yetr   Nr   r   r   r   r   r      s    7r   r   c                       \ rS rSrSrSrSrg)ObjectDoesNotExist   z#The requested object does not existTr   N)r	   r
   r   r   r   silent_variable_failurer   r   r   r   r   r      s    -"r   r   c                       \ rS rSrSrSrg)MultipleObjectsReturned   z?The query returned multiple objects when only one was expected.r   Nr   r   r   r   r   r      s    Ir   r   c                       \ rS rSrSrSrg)SuspiciousOperation"   z!The user did something suspiciousr   Nr   r   r   r   r   r   "   s    +r   r   c                       \ rS rSrSrSrg)SuspiciousMultipartForm&   z+Suspect MIME request in multipart form datar   Nr   r   r   r   r    r    &       5r   r    c                       \ rS rSrSrSrg)SuspiciousFileOperation,   z/A Suspicious filesystem operation was attemptedr   Nr   r   r   r   r$   r$   ,   s    9r   r$   c                       \ rS rSrSrSrg)DisallowedHost2   z'HTTP_HOST header contains invalid valuer   Nr   r   r   r   r'   r'   2       1r   r'   c                       \ rS rSrSrSrg)DisallowedRedirect8   z&Redirect to scheme not in allowed listr   Nr   r   r   r   r+   r+   8   s    0r   r+   c                       \ rS rSrSrSrg)TooManyFieldsSent>   z`
The number of fields in a GET or POST request exceeded
settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.
r   Nr   r   r   r   r.   r.   >       
 	r   r.   c                       \ rS rSrSrSrg)TooManyFilesSentG   z_
The number of fields in a GET or POST request exceeded
settings.DATA_UPLOAD_MAX_NUMBER_FILES.
r   Nr   r   r   r   r2   r2   G   r0   r   r2   c                       \ rS rSrSrSrg)RequestDataTooBigP   ze
The size of the request (excluding any file uploads) exceeded
settings.DATA_UPLOAD_MAX_MEMORY_SIZE.
r   Nr   r   r   r   r5   r5   P   r0   r   r5   c                       \ rS rSrSrSrg)RequestAbortedY   z=The request was closed before it was completed, or timed out.r   Nr   r   r   r   r8   r8   Y   s    Gr   r8   c                       \ rS rSrSrSrg)
BadRequest_   z1The request is malformed and cannot be processed.r   Nr   r   r   r   r;   r;   _       ;r   r;   c                       \ rS rSrSrSrg)PermissionDeniede   z+The user did not have permission to do thatr   Nr   r   r   r   r?   r?   e   r"   r   r?   c                       \ rS rSrSrSrg)ViewDoesNotExistk   z!The requested view does not existr   Nr   r   r   r   rB   rB   k   s    +r   rB   c                       \ rS rSrSrSrg)MiddlewareNotUsedq   z8This middleware is not used in this server configurationr   Nr   r   r   r   rE   rE   q   s    Br   rE   c                       \ rS rSrSrSrg)ImproperlyConfiguredw   z'Django is somehow improperly configuredr   Nr   r   r   r   rH   rH   w   r)   r   rH   c                       \ rS rSrSrSrg)
FieldError}   z(Some kind of problem with a model field.r   Nr   r   r   r   rK   rK   }   r   r   rK   __all__c                   t   ^  \ rS rSrSrSU 4S jjr\S 5       r\S 5       rS r	S r
S rS	 rS
 rS rSrU =r$ )ValidationError   zAn error while validating data.c                   > [         TU ]  XU5        [        U[        5      (       a_  [	        US5      (       a  UR
                  nOA[	        US5      (       d  UR                  nO#UR                  UR                  UR                  p2n[        U[        5      (       aZ  0 U l        UR                  5        H>  u  pE[        U[        5      (       d  [        U5      nUR                  U R
                  U'   M@     g[        U[        5      (       a  / U l        U H  n[        U[        5      (       d  [        U5      n[	        US5      (       a?  U R                  R                  [        UR
                  R                  5       / 5      5        Ms  U R                  R                  UR                  5        M     gXl        X l        X0l	        U /U l        g)a  
The `message` argument can be a single error, a list of errors, or a
dictionary that maps field names to lists of errors. What we define as
an "error" can be either a simple string or an instance of
ValidationError with its message attribute set, and what we define as
list or dictionary can be an actual `list` or `dict` or an instance
of ValidationError with its `error_list` or `error_dict` attribute set.

error_dictmessageN)super__init__
isinstancerO   hasattrrR   
error_listrS   codeparamsdictitemslistextendsumvalues)selfrS   rY   rZ   fieldmessages	__class__s         r   rU   ValidationError.__init__   sW    	/g//w--!,,Wi00!,,(/w~~vgt$$ DO#*==?!(O<<.x8H)1)<)<& $3
 && DO"!'?;;-g6G7L11OO**3w/A/A/H/H/JB+OPOO**7+=+=> # #LI K#fDOr   c                 0    [        U S5        [        U 5      $ NrR   )getattrr[   ra   s    r   message_dictValidationError.message_dict   s     	l#Dzr   c                     [        U S5      (       a#  [        [        U 5      R                  5       / 5      $ [	        U 5      $ rg   )rW   r_   r[   r`   r]   ri   s    r   rc   ValidationError.messages   s3    4&&tDz((*B//Dzr   c                    [        U S5      (       aF  U R                  R                  5        H&  u  p#UR                  U/ 5      R	                  U5        M(     U$ UR                  [
        / 5      R	                  U R                  5        U$ rg   )rW   rR   r\   
setdefaultr^   NON_FIELD_ERRORSrX   )ra   rR   rb   rX   s       r   update_error_dict!ValidationError.update_error_dict   st    4&&%)__%:%:%<!%%eR077
C &=  !!"2B7>>tOr   c              #   <  #    [        U S5      (       a<  U R                  R                  5        H  u  pU[        [	        U5      5      4v   M     g U R
                   H;  nUR                  nUR                  (       a  XCR                  -  n[        U5      v   M=     g 7frg   )	rW   rR   r\   r]   rO   rX   rS   rZ   str)ra   rb   errorserrorrS   s        r   __iter__ValidationError.__iter__   sv     4&&!%!6!6!8T/&"9::: "9 --<<||+G'l"	 )s   BBc                 t    [        U S5      (       a  [        [        U 5      5      $ [        [        U 5      5      $ rg   )rW   reprr[   r]   ri   s    r   __str__ValidationError.__str__   s-    4&&T
##DJr   c                     SU -  $ )NzValidationError(%s)r   ri   s    r   __repr__ValidationError.__repr__   s    $t++r   c                 f    [        U[        5      (       d  [        $ [        U 5      [        U5      :H  $ )N)rV   rO   NotImplementedhash)ra   others     r   __eq__ValidationError.__eq__   s(    %11!!DzT%[((r   c           
      `   [        U S5      (       a5  [        U R                  U R                  [	        U R
                  5      45      $ [        U S5      (       a  [        [	        U R                  5      5      $ [        [        [        U R                  [        R                  " S5      S95      5      $ )NrS   rR   )key)rW   r   rS   rY   r   rZ   rR   tuplesortedrX   operator
attrgetterri   s    r   __hash__ValidationError.__hash__   s    4##LLII!$++.  4&&doo677E&h6I6I)6TUVWWr   )rY   rR   rX   rS   rZ   )NN)r	   r
   r   r   r   rU   propertyrj   rc   rq   rw   r{   r~   r   r   r   __classcell__)rd   s   @r   rO   rO      sY    ))%V    
	# 
,)
X Xr   rO   c                       \ rS rSrSrSrg)EmptyResultSet   z)A database query predicate is impossible.r   Nr   r   r   r   r   r      s    3r   r   c                       \ rS rSrSrSrg)FullResultSet   z1A database query predicate is matches everything.r   Nr   r   r   r   r   r      r=   r   r   c                       \ rS rSrSrSrg)SynchronousOnlyOperation   zBThe user tried to call a sync-only function from an async context.r   Nr   r   r   r   r   r      s    Lr   r   )r   r   django.utils.hashabler   	Exceptionr   r   r   r   r   r    r$   r'   r+   r.   r2   r5   r8   r;   r?   rB   rE   rH   rK   rp   rO   r   r   r   r   r   r   <module>r      s:    /		 		) 	# #	i 	,) ,	1 		1 		( 		, 		+ 		* 		+ 		Y 		 		y 		y 			 		9 		 	  gXi gXT	Y 		I 		y 	r   