
    ju                     F   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, S-\5      rS.r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      r " S5 S6\5      rg)7z"
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       N/var/www/html/KUNJ/venv/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)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   s    ;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   rB   rB   i   r%   r   rB   c                       \ rS rSrSrSrg)ViewDoesNotExisto   z!The requested view does not existr   Nr   r   r   r   rE   rE   o   s    +r   rE   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   rH   rH   u   r0   r   rH   c                       \ rS rSrSrSrg)ImproperlyConfigured{   z'Django is somehow improperly configuredr   Nr   r   r   r   rK   rK   {   r,   r   rK   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   rN   rN      r   r   rN   c                       \ rS rSrSrSrg)FieldFetchBlocked   z,On-demand fetching of a model field blocked.r   Nr   r   r   r   rQ   rQ      s    6r   rQ   __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__
isinstancerU   hasattrrX   
error_listrY   codeparamsdictitemslistextendsumvalues)selfrY   r_   r`   fieldmessages	__class__s         r   r[   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      $ NrX   )getattrra   rg   s    r   message_dictValidationError.message_dict   s     	l#Dzr   c                     [        U S5      (       a#  [        [        U 5      R                  5       / 5      $ [	        U 5      $ rm   )r]   re   ra   rf   rc   ro   s    r   ri   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$ rm   )r]   rX   rb   
setdefaultrd   NON_FIELD_ERRORSr^   )rg   rX   rh   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rm   )	r]   rX   rb   rc   rU   r^   rY   r`   str)rg   rh   errorserrorrY   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      $ rm   )r]   reprra   rc   ro   s    r   __str__ValidationError.__str__   s-    4&&T
##DJr   c                     SU -  $ )NzValidationError(%s)r   ro   s    r   __repr__ValidationError.__repr__   s    $t++r   c                 f    [        U[        5      (       d  [        $ [        U 5      [        U5      :H  $ )N)r\   rU   NotImplementedhash)rg   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      $ )NrY   rX   )key)r]   r   rY   r_   r   r`   rX   tuplesortedr^   operator
attrgetterro   s    r   __hash__ValidationError.__hash__   s    4##LLII!$++.  4&&doo677E&h6I6I)6TUVWWr   )r_   rX   r^   rY   r`   )NN)r	   r
   r   r   r   r[   propertyrp   ri   rw   r}   r   r   r   r   r   __classcell__)rj   s   @r   rU   rU      sY    ))%V    
	# 
,)
X Xr   rU   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   z3A database query predicate that matches everything.r   Nr   r   r   r   r   r      s    =r   r   c                       \ rS rSrSrSrg)SynchronousOnlyOperationi  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?   rB   rE   rH   rK   rN   rQ   rv   rU   r   r   r   r   r   r   <module>r      sR    /		 		) 	# #/y /	i 	,) ,	1 		1 		( 		, 		+ 		* 		+ 		Y 		 		y 		y 			 		9 		 		
 	  gXi gXT	Y 		I 		y 	r   