Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call NameLoad NameLoad Str Str FunctionDef arguments args defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad Return Call NameLoad NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body TryExcept body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Raise AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A importlib import_module django.conf settings django.contrib.auth.models UserManager django.db.models CharField django.utils.translation ugettext_lazy _ N/A MONGOENGINE_USER_DOCUMENT N/A getattr settings MONGOENGINE_USER_DOCUMENT django_mongoengine.mongo_auth.models.User get_user_document N/A N/A N/A N/A N/A Get the user document class used for authentication.

    This is the class defined in settings.MONGOENGINE_USER_DOCUMENT, which
    defaults to `mongoengine.django.auth.User`.

     N/A name MONGOENGINE_USER_DOCUMENT N/A dot N/A N/A name rindex . N/A module N/A import_module N/A name N/A dot N/A N/A getattr module N/A name N/A N/A dot 1 N/A MongoUserManager N/A UserManager N/A N/A A User manager wich allows the use of MongoEngine documents in Django.

    To use the manager, you must tell django.contrib.auth to use MongoUser as
    the user model. In you settings.py, you need:

        INSTALLED_APPS = (
            ...
            'django.contrib.auth',
            'django_mongoengine.mongo_auth',
            ...
        )
        AUTH_USER_MODEL = 'mongo_auth.MongoUser'

    Django will use the model object to access the custom Manager, which will
    replace the original queryset with MongoEngine querysets.

    By default, `mongo_auth.User` will be used to store users. You
    can specify another document class in MONGOENGINE_USER_DOCUMENT in your
    settings.py.

    The User Document class has the same requirements as a standard custom user
    model: https://docs.djangoproject.com/en/dev/topics/auth/customizing/

    In particular, the User Document class must define USERNAME_FIELD and
    REQUIRED_FIELDS.
     contribute_to_class N/A N/A self model name N/A N/A N/A N/A N/A N/A super MongoUserManager self contribute_to_class model name N/A N/A self dj_model N/A self model N/A N/A self model N/A get_user_document N/A N/A N/A self dj_model USERNAME_FIELD N/A N/A self model USERNAME_FIELD N/A username N/A CharField N/A _ username max_length 30 unique True N/A N/A N/A username contribute_to_class N/A self dj_model N/A N/A self dj_model USERNAME_FIELD N/A N/A N/A self dj_model REQUIRED_FIELDS N/A N/A self model REQUIRED_FIELDS N/A name N/A N/A self dj_model REQUIRED_FIELDS N/A N/A field N/A CharField N/A _ name max_length 30 N/A N/A N/A field contribute_to_class N/A self dj_model name N/A get N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A N/A N/A N/A self get_queryset get args kwargs N/A N/A N/A N/A N/A self model DoesNotExist N/A N/A N/A N/A self dj_model DoesNotExist N/A db N/A N/A self N/A N/A N/A NotImplementedError N/A property get_queryset N/A N/A self N/A N/A N/A N/A N/A self model objects N/A N/A