Add note about wanting to use register_connection

I think this would be the cleaner way to go about things but there are
some unanswered questions about that route.
This commit is contained in:
Matthew Jones 2015-10-02 16:04:47 -04:00
parent 1425718d9e
commit c65d068d55

View File

@ -18,6 +18,8 @@ logger = logging.getLogger('awx.fact.models.fact')
key_transform = KeyTransform([('.', '\uff0E'), ('$', '\uff04')])
# NOTE: I think it might be better to use register_connection here: https://github.com/MongoEngine/mongoengine/blob/0.9/mongoengine/connection.py#L21
# but I'm not doing that because I don't see how we can also register the key transform as needed or set the tz_aware preference
@classmethod
def _get_db_monkeypatched(cls):
""" Override the default _get_db mechanism to start a connection to the database """