I need some help creating a custom User model, in order to extend it.
My models.py is :
from mongoengine.django.auth import User
class User(User):
"""Extend Mongo Engine User model"""
foo = ListField(default=[])
So I have updated the settings.py with:
MONGOENGINE_USER_DOCUMENT = 'apps.models.User'
AUTH_USER_MODEL = 'mongo_auth.MongoUser'
SOCIAL_AUTH_USER_MODEL = 'apps.models.User'
However on login I get:
ValidationError: ValidationError (UserSocialAuth:526fab8ac36b440b4a8f080b) (A ReferenceField only accepts DBRef or documents: ['user'])
I checked I saw that the 526fab8ac36b440b4a8f080b id is the user id in user_social_auth collection.
I need some help creating a custom User model, in order to extend it.
My models.py is :
So I have updated the settings.py with:
However on login I get:
I checked I saw that the
526fab8ac36b440b4a8f080bid is the user id inuser_social_authcollection.