hmarr/mongoengine — Issue #319: Wrong collection name after upgrade to 0.5
Author: tomekwojcik
Created: 2011-10-15 20:41:35+00:00
State: open

Hi guys,
I encountered a strange problem.

I have a class:

class IPAddress(Document):
# CODEZ IZ HERE

and with MongoEngine 0.4 it was tied to `ipaddress` collection. With 0.5 however it's tied to `i_p_address` though the docs state that the collection name will by default be the lowercase class name. Adding `meta = { 'collection': 'ipaddress' }` fixed this, of course.

Now, either I'm wrong or the docs are wrong :).