Is it bad practice to extend the MongoEngine User document?
Posted
by Soviut
on Stack Overflow
See other posts from Stack Overflow
or by Soviut
Published on 2010-03-20T03:38:54Z
Indexed on
2010/03/20
3:41 UTC
Read the original article
Hit count: 346
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?
© Stack Overflow or respective owner