Is it bad practice to extend the MongoEngine User document?
- by Soviut
I'm integrating MongoDB using MongoEngine. It provides auth and session support that a standard pymongo setup would lack.
In regular django auth, it's considered bad practice to extend the User model since there's no guarantee it will be used correctly everywhere. Is this the case with mongoengine.django.auth?
If it is considered bad practice, what is the best way to attach a separate user profile? Django has mechanisms for specifying an AUTH_PROFILE_MODULE. Is this supported in MongoEngine as well, or should I be manually doing the lookup?