
    LȂi                     0   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* S+\5      rS,r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      rg)5z"
Global Django exception 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       GD:\sksbv-state-backend\venv\Lib\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)ObjectNotUpdated   z$The updated object no longer exists.r   Nr   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)SuspiciousFileOperation0   z/A Suspicious filesystem operation was attemptedr   Nr   r   r   r   r'   r'   0   s    9r   r'   c                       \ rS rSrSrSrg)DisallowedHost6   z'HTTP_HOST header contains invalid valuer   Nr   r   r   r   r*   r*   6       1r   r*   c                       \ rS rSrSrSrg)DisallowedRedirect<   z8Redirect was too long or scheme was not in allowed list.r   Nr   r   r   r   r.   r.   <       Br   r.   c                       \ rS rSrSrSrg)TooManyFieldsSentB   z`
The number of fields in a GET or POST request exceeded
settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.
r   Nr   r   r   r   r2   r2   B       
 	r   r2   c                       \ rS rSrSrSrg)TooManyFilesSentK   z_
The number of fields in a GET or POST request exceeded
settings.DATA_UPLOAD_MAX_NUMBER_FILES.
r   Nr   r   r   r   r6   r6   K   r4   r   r6   c                       \ rS rSrSrSrg)RequestDataTooBigT   ze
The size of the request (excluding any file uploads) exceeded
settings.DATA_UPLOAD_MAX_MEMORY_SIZE.
r   Nr   r   r   r   r9   r9   T   r4   r   r9   c                       \ rS rSrSrSrg)RequestAborted]   z=The request was closed before it was completed, or timed out.r   Nr   r   r   r   r<   r<   ]   s    Gr   r<   c                       \ rS rSrSrSrg)
BadRequestc   z1The request is malformed and cannot be processed.r   Nr   r   r   r   r?   r?   c       ;r   r?   c                       \ rS rSrSrSrg)PermissionDeniedi   z+The user did not have permission to do thatr   Nr   r   r   r   rC   rC   i   r%   r   rC   c                       \ rS rSrSrSrg)ViewDoesNotExisto   z!The requested view does not existr   Nr   r   r   r   rF   rF   o   s    +r   rF   c                       \ rS rSrSrSrg)MiddlewareNotUsedu   z8This middleware is not used in this server configurationr   Nr   r   r   r   rI   rI   u   r0   r   rI   c                       \ rS rSrSrSrg)ImproperlyConfigured{   z'Django is somehow improperly configuredr   Nr   r   r   r   rL   rL   {   r,   r   rL   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   rO   rO      r   r   rO   __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__
isinstancerS   hasattrrV   
error_listrW   codeparamsdictitemslistextendsumvalues)selfrW   r]   r^   fieldmessages	__class__s         r   rY   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      $ NrV   )getattrr_   re   s    r   message_dictValidationError.message_dict   s     	l#Dzr   c                     [        U S5      (       a#  [        [        U 5      R                  5       / 5      $ [	        U 5      $ rk   )r[   rc   r_   rd   ra   rm   s    r   rg   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$ rk   )r[   rV   r`   
setdefaultrb   NON_FIELD_ERRORSr\   )re   rV   rf   r\   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rk   )	r[   rV   r`   ra   rS   r\   rW   r^   str)re   rf   errorserrorrW   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      $ rk   )r[   reprr_   ra   rm   s    r   __str__ValidationError.__str__   s-    4&&T
##DJr   c                     SU -  $ )NzValidationError(%s)r   rm   s    r   __repr__ValidationError.__repr__   s    $t++r   c                 f    [        U[        5      (       d  [        $ [        U 5      [        U5      :H  $ )N)rZ   rS   NotImplementedhash)re   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      $ )NrW   rV   )key)r[   r   rW   r]   r   r^   rV   tuplesortedr\   operator
attrgetterrm   s    r   __hash__ValidationError.__hash__   s    4##LLII!$++.  4&&doo677E&h6I6I)6TUVWWr   )r]   rV   r\   rW   r^   )NN)r	   r
   r   r   r   rY   propertyrn   rg   ru   r{   r   r   r   r   r   __classcell__)rh   s   @r   rS   rS      sY    ))%V    
	# 
,)
X Xr   rS   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      rA   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   r6   r9   r<   r?   rC   rF   rI   rL   rO   rt   rS   r   r   r   r   r   r   <module>r      sF    /		 		) 	# #/y /	i 	,) ,	1 		1 		( 		, 		+ 		* 		+ 		Y 		 		y 		y 			 		9 		 	  gXi gXT	Y 		I 		y 	r   