Fix frontend afe readonly connection
I think this is a bug on frontend/afe/readonly_connection for a long time.
Maybe nobody really looked at it. In short, the readonly connection
never talked to the readonly databased based on global_config.ini's
readonly db configuration.
This patch should fix it properly.
Changes from v1:
* Fix a comparison among self._connection and django.connection. The
intended comparison was among self._connection and
django.connection.connection. This other bug has gone unnoticed because
of the first bug Eric fixed.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Eric Li <ericli@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5392 592f7852-d20e-0410-864c-8624ca9c26a4