https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/core/management/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/core/management/validation.pyc
�
r�\c@s�ddlZddlZddlmZddlmZddlmZddlm	Z	ddl
mZdfd��YZe
d	�Zd
�ZdS(i����N(tsettings(tcolor_style(t	force_str(tis_iterable(tsixtModelErrorCollectioncBs eZejd�Zd�ZRS(cCs"g|_||_t�|_dS(N(terrorstoutfileRtstyle(tselfR((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pyt__init__s		cCsF|jj||f�|jj|jjtd||f���dS(Ns%s: %s
(RtappendRtwriteRtERRORR(R	tcontextterror((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pytadds(t__name__t
__module__tsyststdoutR
R(((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pyRsc/Csddlm}m}ddlm}ddlm}m}t|�}x-|�j	�D]\}}	|j
||	�qXWx�|j|dt�D]x}
|
j
}|jr"y|jjd�\}}
Wn+tk
r�|j
|d|j�q�nX|j||
�s�|j
|d|j�q�q�ntjd	|j|jfkr�t|
jttf�sl|j
|d
�n|
j|
jkr�|j
|d�n|j|
j�js�|j
|d�q�nx�	|jD]�	}|jd
kr|j r|j!jd
kr|j
|d|j�n|jj"d�r=|j
|d|j�n|j rv|j#rv|j$j%rv|j
|d|j�nt||j&�r�y9t'|j(�}|dkr�|j
|d|j�nWq�tt)fk
r�|j
|d|j�q�Xnt||j*�r>t+t+}}d}y?t'|j,�}|dkrR|j
|||j�nt}Wn.tt)fk
r�|j
|||j�nXd}y?t'|j-�}|dkr�|j
|||j�nt}Wn.tt)fk
r�|j
|||j�nXd}|r>|r>||kr;|j
|||j�q;q>nt||j.�rt|j/rt|j
|d|j�nt||j0�r�yddl1m2}Wq�t3k
r�|j
|d|j�q�Xnt||j4�rt5|dt+�r|j
|d|j�nt||j6�rE|j7p'|j8rE|j
|d|j�nt||j9�r�t5|dt+�r�t5|dt+�r�|j
|d|j�n|j:r@t|j:t;j<�s�t=|j:�r�|j
|d|j�q@x_|j:D]Q}t|t;j<�st=|�st>|�d kr�|j
|d!|j�q�q�Wn|j?dQtt+fkrr|j
|d"|j�n|jAjB|||�|jCrtD|jCd#�r|jCjE|kr�|j#r�|j
|d$|j�q|jCjE|kr|jF�r|j
|d%|j�qn|jCr�|jCjG|j�kr�t|jCjGt;j<�r�|jCjGj
jr�|j
|d&|j|jCjGj
j|jCjGj
j|jCjGj
jf�q�|j
|d'|j|jCjGf�nt|jCjGt;j<�r�q�n|jHr�t>|jI�d(kr�t+}x |jID]}|p/|j}qW|s�|j
|d)d*jJg|jID]}|j^qX�|jCjGjKf�q�q�|jIdjs�|j
|d+|jIdj|jCjGjKf�q�n|jCjGj
}|jLjM�}|jN�}|jCjO�syx�|jPD]�}|j|krQ	|j
|d,|j|j|j|jf�n|j|kr
	|j
|d-|j|j|j|jf�q
	q
	Wx�|jQD]�}|j|kr�	|j
|d.|j|j|j|jf�n|j|kr�	|j
|d/|j|j|j|jf�q�	q�	Wx�|jR�D]�}|jM�|krz
|j
|d0|j|j|jM�|jf�n|jM�|kr0
|j
|d1|j|j|jM�|jf�q0
q0
Wx�|jS�D]�}|jT|k	r�
|jM�|kr(|j
|d2|j|j|jM�|jf�n|jM�|kro|j
|d3|j|j|jM�|jf�qoq�
q�
Wqyq�q�Wg}x;tU|jQ�D]*\} }|jCjG|j�krpt|jCjGt;j<�r,|jCjGj
jr,|j
|d&|j|jCjGj
j|jCjGj
j|jCjGj
jf�n#|j
|d4|j|jCjGf�t|jCjGt;j<�rpq�qpn|jr�|j
|d5|j�n|jCjVdQk	r�t|jCjVt;j<�r�|
|jCjG}!}"|!|"kr
|jCjWr
|jCjVj
jXr
|j
|d6�nt+t+d}#}$}%x&|jCjVj
jPD]}&t5|&jCd7dQ�}'|!|"kr�
|'|!krv
|%d(7}%n|%d krH|j
|d8|jCjVj
j|!j
jf�qHq6
|'|!kr�
|#r�
|j
|d9|jCjVj
j|!j
jf�qHt}#q6
|'|"kr6
|$r?|j
|d9|jCjVj
j|'j
jf�qHt}$q6
q6
W|jCjV|jd:t�kr�|j
|d;|j|jCjVf�n|jCjG|
|jCjVf}(|(|kr�|j
|d<|
j
j|jCjVj
jf�n
|jY|(�|jCjVj
jXst+t+})}*xi|jCjVj
jPD]U}+|+jCr%|)r\|+jCjG|jCjGkr\t})qz|+jCjG|
krzt}*qzq%q%W|)s�|*r�|j
|d=|j|jCjVj
j|jCjGj
j|
j
jf�q�qn>t|jCjVt;j<�r|j
|d>|j|jCjVf�n|jCjGj
}|jLjM�}|jN�}|dQk	r�x�|jPD]�}|j|kr�|j
|d?|j|j|j|jf�n|j|krT|j
|d@|j|j|j|jf�qTqTWx�|jQD]�}|j|kr(|j
|dA|j|j|j|jf�n|j|kr�|j
|dB|j|j|j|jf�q�q�Wx�|jR�D]�}|jT|k	rw|jM�|kr�|j
|dC|j|j|jM�|jf�n|jM�|kr|j
|dD|j|j|jM�|jf�qqwqwWx�|jS�D]�}|jM�|krr|j
|dE|j|j|jM�|jf�n|jM�|kr(|j
|dF|j|j|jM�|jf�q(q(Wq�q�W|jZr�x�|jZD]�},|,dGkr�q�n|,j[dH�r|,d(},n|j\r#|,dIkr#q�ndJ|,kr5q�n|,dKkrGq�ny|j|,dLt+�Wq�|j]k
r�|j
|dM|,�q�Xq�Wnx$|j^D]}-t_||dN|-�q�Wt|j`tajb�s�|j
|dO�q�x$|j`D]}.t_||dP|.�q�Wq�Wt>|jc�S(Rs�
    Validates all models that are part of the specified app. If no app name is provided,
    validates all models of all installed apps. Writes errors, if any, to outfile.
    Returns number of errors.
    i����(tmodelst
connection(tget_app_errors(tSET_NULLtSET_DEFAULTtinclude_swappedt.s+%s is not of the form 'app_label.app_name'.sPModel has been swapped out for '%s' which has not been installed or is abstract.s%s.%ss,The REQUIRED_FIELDS must be a list or tuple.sjThe field named as the USERNAME_FIELD should not be included in REQUIRED_FIELDS on a swappable User model.sKThe USERNAME_FIELD must be unique. Add unique=True to the field parameters.tids�"%s": You can't use "id" as a field name, because each model automatically gets an "id" field if none of the fields have primary_key=True. You need to either remove/rename your "id" field or add primary_key=True to a field.t_se"%s": Field names cannot end with underscores, because this would lead to ambiguous queryset filters.s/"%s": Primary key fields cannot have null=True.isM"%s": CharFields require a "max_length" attribute that is a positive integer.sX"%s": DecimalFields require a "decimal_places" attribute that is a non-negative integer.sP"%s": DecimalFields require a "max_digits" attribute that is a positive integer.s�"%s": DecimalFields require a "max_digits" attribute value that is greater than or equal to the value of the "decimal_places" attribute.s2"%s": FileFields require an "upload_to" attribute.(tImagesd"%s": To use ImageFields, you need to install Pillow. Get it at https://pypi.python.org/pypi/Pillow.tnullsN"%s": BooleanFields do not accept null values. Use a NullBooleanField instead.sO"%s": FilePathFields must have either allow_files or allow_folders set to True.tblanks{"%s": GenericIPAddressField can not accept blank values if null values are not allowed, as blank values are stored as null.s;"%s": "choices" should be iterable (e.g., a tuple or list).isX"%s": "choices" should be a sequence of two-item iterables (e.g. list of 2 item tuples).s6"%s": "db_index" should be either None, True or False.t	on_deletes6'%s' specifies on_delete=SET_NULL, but cannot be null.s?'%s' specifies on_delete=SET_DEFAULT, but has no default value.sx'%s' defines a relation with the model '%s.%s', which has been swapped out. Update the relation to point at settings.%s.sV'%s' has a relation with model %s, which has either not been installed or is abstract.isJField combination '%s' under model '%s' must have a unique=True constraintt,s?Field '%s' under model '%s' must have a unique=True constraint.skAccessor for field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'.suReverse query name for field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'.soAccessor for field '%s' clashes with m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.syReverse query name for field '%s' clashes with m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.swAccessor for field '%s' clashes with related m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.s�Reverse query name for field '%s' clashes with related m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.ssAccessor for field '%s' clashes with related field '%s.%s'. Add a related_name argument to the definition for '%s'.s}Reverse query name for field '%s' clashes with related field '%s.%s'. Add a related_name argument to the definition for '%s'.s['%s' has an m2m relation with model %s, which has either not been installed or is abstract.sGManyToManyFields cannot be unique.  Remove the unique argument on '%s'.sCMany-to-many fields with intermediate tables cannot be symmetrical.ttosdIntermediary model %s has more than two foreign keys to %s, which is ambiguous and is not permitted.scIntermediary model %s has more than one foreign key to %s, which is ambiguous and is not permitted.tinclude_auto_createdsN'%s' specifies an m2m relation through model %s, which has not been installed.s�The model %s has two manually-defined m2m relations through the model %s, which is not permitted. Please consider using an extra field on your intermediary model instead.sg'%s' is a manually-defined m2m relation through model %s, which does not have foreign keys to %s and %ssM'%s' specifies an m2m relation through model %s, which has not been installedsoAccessor for m2m field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'.syReverse query name for m2m field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'.ssAccessor for m2m field '%s' clashes with m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.s}Reverse query name for m2m field '%s' clashes with m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.s{Accessor for m2m field '%s' clashes with related m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.s�Reverse query name for m2m field '%s' clashes with related m2m field '%s.%s'. Add a related_name argument to the definition for '%s'.swAccessor for m2m field '%s' clashes with related field '%s.%s'. Add a related_name argument to the definition for '%s'.s�Reverse query name for m2m field '%s' clashes with related field '%s.%s'. Add a related_name argument to the definition for '%s'.t?t-t_ordert__tpktmany_to_manys6"ordering" refers to "%s", a field that doesn't exist.tunique_togethers "index_together" must a sequencetindex_togetherN(dt	django.dbRRtdjango.db.models.loadingRtdjango.db.models.deletionRRRtitemsRt
get_modelstTruet_metatswappedtsplitt
ValueErrort	swappablet	get_modelRtAUTH_USER_MODELt	app_labeltobject_namet
isinstancetREQUIRED_FIELDStlistttupletUSERNAME_FIELDt	get_fieldtuniquetlocal_fieldstnametprimary_keyR)tendswithRtfeaturest!interprets_empty_strings_as_nullst	CharFieldtintt
max_lengtht	TypeErrortDecimalFieldtFalsetdecimal_placest
max_digitst	FileFieldt	upload_tot
ImageFieldtdjango.utils.imageRtImportErrortBooleanFieldtgetattrt
FilePathFieldtallow_filest
allow_folderstGenericIPAddressFieldtchoicesRtstring_typesRtlentdb_indextNonet
validationtvalidate_fieldtrelthasattrR!thas_defaultR#trequires_unique_targettforeign_related_fieldstjoinRtrelatedtget_accessor_nametrelated_query_namet	is_hiddentfieldstlocal_many_to_manyt$get_all_related_many_to_many_objectstget_all_related_objectstfieldt	enumeratetthroughtsymmetricaltauto_createdRtorderingt
startswithtorder_with_respect_totFieldDoesNotExistR+tvalidate_local_fieldsR,tcollectionstSequenceR(/RtappRRRRRtetapp_nameRtclstoptsR:t
model_nametfRKtdecimalp_okt
mdigits_oktdecimalp_msgROtmdigits_msgRPtinvalid_values_msgRtcthas_unique_fieldt	rel_fieldtrel_optstrel_nametrel_query_nametrtseen_intermediary_signaturestit
from_modeltto_modelt	seen_fromtseen_tot	seen_selftinter_fieldtrel_tot	signaturetseen_related_fktseen_this_fkRqt
field_nametuttit((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pytget_validation_errorss�		
+



 
$%7	%1!	+J&	K3/3/3262C+J#		++
	
	

		)/3/3292=	
cCsddlm}t|tj�s9|j|d|�n�x�|D]�}y|j|dt�}Wn.|jk
r�|j|d||f�q@Xt|j	|j
�r�|j|d||j|f�n||jkr@|j|d||j|f�q@q@WdS(Ni����(Rs!all %s elements must be sequencesR*s."%s" refers to %s, a field that doesn't exist.s<"%s" refers to %s. ManyToManyFields are not supported in %s.sE"%s" refers to %s. This is not in the same model as the %s statement.(
R-RR<R{R|RRAR2RyRct
ManyToManyRelRDRC(R~R�R�RmRRqR�((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pyRzes
#(R{Rtdjango.confRtdjango.core.management.colorRtdjango.utils.encodingRtdjango.utils.itercompatRtdjango.utilsRRR`R�Rz(((sC/tmp/pip-install-XxeQeY/django/django/core/management/validation.pyt<module>s�P

https://t.me/AnonymousX5 - 2025