def _bypass_non_decrypted_field_exception(self):
        """Bypass exception if some field was not decrypted."""
        if getattr(settings, 'PGPFIELDS_BYPASS_NON_DECRYPTED_FIELD_EXCEPTION', False):
            return True
        if getattr(settings, 'PGPFIELDS_BYPASS_FIELD_EXCEPTION_IN_MIGRATIONS', False):
            # Since django versions <1.8 have no support of
            # Manager.use_in_migrations, need to turn raising
            # exception off.
            if {'manage.py', 'migrate'}.issubset(sys.argv):
                return True
        return False
def _bypass_non_decrypted_field_exception ( self ) : if getattr ( settings , 'PGPFIELDS_BYPASS_NON_DECRYPTED_FIELD_EXCEPTION' , False ) : return True if getattr ( settings , 'PGPFIELDS_BYPASS_FIELD_EXCEPTION_IN_MIGRATIONS' , False ) : if { 'manage.py' , 'migrate' } . issubset ( sys . argv ) : return True return False
Bypass exception if some field was not decrypted.