Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
Changelog
=========

Version 0.4.0
-------------

This release fixes a couple problems from the previous 0.3 release and adds a
number of new features, including:

* Support for callable field defaults.
* Change default values for DictField, OrderedDictField, ListField, and
EmbeddedDocumentListField to be the empty value for their respective
containers instead of None.
* Add the `ignore_unknown_fields`
:ref:`metadata attribute <metadata-attributes>` which allows unknown
fields when parsing documents into a :class:`~pymodm.MongoModel`.
Note that with this option enabled, calling :meth:`~pymodm.MongoModel.save`
will erase these fields for that model instance.
* Add :meth:`pymodm.queryset.QuerySet.reverse`.
* Properly check that the `mongo_name` parameter to
:class:`~pymodm.base.fields.MongoBaseField`
and all keys in :class:`~pymodm.fields.DictField` and
:class:`~pymodm.fields.OrderedDictField` are valid MongoDB field names.
* Fix multiple issues in dereferencing fields thanks to
https://github.com/ilex.


For full list of the issues resolved in this release, visit
https://jira.mongodb.org/browse/PYMODM/fixforversion/17785.

Version 0.3.0
-------------

Expand Down
2 changes: 1 addition & 1 deletion pymodm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

__all__ = fields.__all__ + connection.__all__ + base.__all__

version = '0.3.1.dev0'
version = '0.4.0'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use_setuptools()
from setuptools import setup, find_packages

VERSION = '0.3.1.dev0'
VERSION = '0.4.0'

LONG_DESCRIPTION = None
try:
Expand Down