Closed matheusbrat closed 9 years ago
+- Removed get_or_create() deprecated since 0.8.0. #300
https://github.com/MongoEngine/mongoengine/blob/master/docs/changelog.rst
Yeah, I knew about it, we need to pin the mongoengine and flask-mongoengine versions til we make the needed changes
flask-mongoengine==0.7.1
mongoengine==0.9.0
pymongo==2.7.1
Thanks @x-warrior I guess it is now fixed
I think this error is related to requirements file which does not specify the mongoengine version neither the flask-mongoengine
my pip freeze (I'm using a virtualenv, so all packages are installed from quokka)
python manage.py populate
Loading fixtures Traceback (most recent call last): File "manage.py", line 12, in
app = create_app()
File "/Users/CKL/han/quokka/quokka/quokka/init.py", line 49, in create_app
configure_extensions(app, admin_instance or admin)
File "/Users/CKL/han/quokka/quokka/quokka/ext/init.py", line 31, in configure_extensions
fixtures.configure(app, db)
File "/Users/CKL/han/quokka/quokka/quokka/ext/fixtures.py", line 18, in configure
populate.create_purposes()
File "/Users/CKL/han/quokka/quokka/quokka/utils/populate.py", line 175, in create_purposes
self.create_purpose(purpose)
File "/Users/CKL/han/quokka/quokka/quokka/utils/populate.py", line 162, in create_purpose
purpose, created = SubContentPurpose.objects.get_or_create(
AttributeError: 'BaseQuerySet' object has no attribute 'get_or_create'