Compare commits
3 Commits
deprecate-
...
v0.10.8
Author | SHA1 | Date | |
---|---|---|---|
|
c6c5f85abb | ||
|
7b860f7739 | ||
|
e28804c03a |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -14,4 +14,6 @@ env/
|
|||||||
.project
|
.project
|
||||||
.pydevproject
|
.pydevproject
|
||||||
tests/test_bugfix.py
|
tests/test_bugfix.py
|
||||||
htmlcov/
|
htmlcov/
|
||||||
|
venv
|
||||||
|
venv3
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- '2.6'
|
- '2.6' # TODO remove in v0.11.0
|
||||||
- '2.7'
|
- '2.7'
|
||||||
- '3.3'
|
- '3.3'
|
||||||
- '3.4'
|
- '3.4'
|
||||||
|
@@ -4,9 +4,19 @@ Changelog
|
|||||||
|
|
||||||
Changes in 0.10.8
|
Changes in 0.10.8
|
||||||
=================
|
=================
|
||||||
|
- Added support for QuerySet.batch_size (#1426)
|
||||||
|
- Fixed query set iteration within iteration #1427
|
||||||
|
- Fixed an issue where specifying a MongoDB URI host would override more information than it should #1421
|
||||||
|
- Added ability to filter the generic reference field by ObjectId and DBRef #1425
|
||||||
|
- Fixed delete cascade for models with a custom primary key field #1247
|
||||||
- Added ability to specify an authentication mechanism (e.g. X.509) #1333
|
- Added ability to specify an authentication mechanism (e.g. X.509) #1333
|
||||||
- Added support for falsey primary keys (e.g. doc.pk = 0) #1354
|
- Added support for falsey primary keys (e.g. doc.pk = 0) #1354
|
||||||
- Fixed BaseQuerySet#sum/average for fields w/ explicit db_field #1417
|
- Fixed QuerySet#sum/average for fields w/ explicit db_field #1417
|
||||||
|
- Fixed filtering by embedded_doc=None #1422
|
||||||
|
- Added support for cursor.comment #1420
|
||||||
|
- Fixed doc.get_<field>_display #1419
|
||||||
|
- Fixed __repr__ method of the StrictDict #1424
|
||||||
|
- Added a deprecation warning for Python 2.6
|
||||||
|
|
||||||
Changes in 0.10.7
|
Changes in 0.10.7
|
||||||
=================
|
=================
|
||||||
|
@@ -1,9 +1,22 @@
|
|||||||
"""Helper functions and types to aid with Python 2.5 - 3 support."""
|
"""Helper functions and types to aid with Python 2.6 - 3 support."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
import pymongo
|
import pymongo
|
||||||
|
|
||||||
|
|
||||||
|
# Show a deprecation warning for people using Python v2.6
|
||||||
|
# TODO remove in mongoengine v0.11.0
|
||||||
|
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
|
||||||
|
warnings.warn(
|
||||||
|
'Python v2.6 support is deprecated and is going to be dropped '
|
||||||
|
'entirely in the upcoming v0.11.0 release. Update your Python '
|
||||||
|
'version if you want to have access to the latest features and '
|
||||||
|
'bug fixes in MongoEngine.',
|
||||||
|
DeprecationWarning
|
||||||
|
)
|
||||||
|
|
||||||
if pymongo.version_tuple[0] < 3:
|
if pymongo.version_tuple[0] < 3:
|
||||||
IS_PYMONGO_3 = False
|
IS_PYMONGO_3 = False
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user