Refty / mongo-thingy

:leaves: Powerful schema-less ODM for MongoDB and Python (sync + async)
https://mongo-thingy.readthedocs.io
MIT License
69 stars 12 forks source link

Changing collection name with `collection_name` attribute #2

Closed Shir0kamii closed 7 years ago

Shir0kamii commented 7 years ago

Currently to change the name of the collection a model uses, you have to set the table_name class attribute.

Semantically, it's not very good and it would feel better to use collection_name

ramnes commented 7 years ago

Do you want to tackle it?

Shir0kamii commented 7 years ago

Sure, see #3

ramnes commented 7 years ago

Fixed with 7394fd3. Thanks!