|
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 : /usr/lib64/python2.7/site-packages/django/core/checks/compatibility/ |
Upload File : |
�
r�\c @ s? d d l m Z d d l m Z d � Z d � Z d � Z d S( i����( t unicode_literals( t modelsc C s[ d d l m } d } t | d | � } | | k rW d | d d d g } d j | � Sd
S( u�
Checks if the user has *not* overridden the ``TEST_RUNNER`` setting &
warns them about the default behavior changes.
If the user has overridden that setting, we presume they know what they're
doing & avoid generating a message.
i����( t settingsu! django.test.runner.DiscoverRunneru TEST_RUNNERu6 Django 1.6 introduced a new default test runner ('%s')uH You should ensure your tests are all running & behaving as expected. SeeuC https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runneru for more information.u N( t django.confR t getattrt join( R t new_defaultt test_runner_settingt message( ( sO /tmp/pip-install-XxeQeY/django/django/core/checks/compatibility/django_1_6_0.pyt check_test_runner s c C s� g } xv t j � D]h } | j } xV | j D]K } t | t j � r, | j � r, | j d | j | j | j
f � q, q, Wq W| r� d j | � } d d | d d d d g } d j | � Sd
S( u�
Checks if there are any BooleanFields without a default value, &
warns the user that the default has changed from False to Null.
u %s.%s: "%s"u , u? You have not set a default value for one or more BooleanFields:u %s.u@ In Django 1.6 the default value of BooleanField was changed fromu3 False to Null when Field.default isn't defined. SeeuE https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfieldu for more information.u N( R t
get_modelst _metat local_fieldst
isinstancet BooleanFieldt has_defaultt appendt app_labelt object_namet nameR ( t fieldst clst optst ft
fieldnamesR ( ( sO /tmp/pip-install-XxeQeY/django/django/core/checks/compatibility/django_1_6_0.pyt! check_boolean_field_default_value s ( c C s/ t � t � g } g | D] } | r | ^ q S( u�
Required by the ``check`` management command, this returns a list of
messages from all the relevant check functions for this version of Django.
( R R ( t checkst output( ( sO /tmp/pip-install-XxeQeY/django/django/core/checks/compatibility/django_1_6_0.pyt
run_checks4 s N( t
__future__R t django.dbR R R R ( ( ( sO /tmp/pip-install-XxeQeY/django/django/core/checks/compatibility/django_1_6_0.pyt <module> s