Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzsochi committed Nov 7, 2017
1 parent 3926810 commit 9040962
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 56 deletions.
38 changes: 20 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Create the models
__collection__ = 'posts'
user = fields.ReferenceField(User)
created_at = fields.DatetimeField(auto_now=True)
title = fields.StringField()
body = fields.StringField()
log = fields.ListField(fields.EmbeddedDocumentField(PostLogItem))
Expand Down Expand Up @@ -218,39 +219,40 @@ Is equal of this:
print(item)
=======
-------
CHANGES
=======
-------

1.4.14 (2017-11-06)
-------------------
===================

* Add ``EnumField`` for save ``enum.Enum``;
* Add ``EnumStateField`` for simple state machines based on ``enum.Enum``.


1.4.13 (2017-10-31)
-------------------
===================

* Add ``QuerySet.batch_size`` method for setup batch size for cursor;
* Some minor fixes.



1.4.10 (2017-07-07)
------------------
==================

* ``ReferenceField.from_mongo`` try to get document from primary
if not found by default.


1.4.9 (2017-07-06)
------------------
==================

* Add ``QuerySet.read_primary`` method for simple setup ``read_preference.Primary``.


1.4.4 (2017-05-17)
------------------
==================

* Add ``TimedeltaField`` for stores durations;
* Add ``SimpleEmbeddedDocumentField`` for simply create embedded documents.
Expand All @@ -265,20 +267,20 @@ CHANGES
1.4.3 (2017-05-14)
------------------
==================

* Add ``StaticField`` for static data.


1.4.2 (2017-04-09)
------------------
==================

* Additional arguments (like ``write_concern``) for write operations;
* ``create_fake`` save the documents with write concern "majority" by default.


1.4.0 (2017-04-05)
------------------
==================

* Drop pymongo 2 support;
* Additional options for databases and collections;
Expand All @@ -289,35 +291,35 @@ CHANGES


1.3.1 (2017-02-21)
------------------
==================

* Change raw data for ``Money``;


1.3.0 (2017-02-19)
------------------
==================

* Add currency support to ``Money``:
- Totaly rewrite ``Money`` type. Now it is not subclass of ``Decimal``;
- Add storage for currencies: ``yadm.fields.money.currency.DEFAULT_CURRENCY_STORAGE``;


1.2.1 (2017-01-19)
------------------
==================

* Add ``QuerySet.find_in`` for ``$in`` queries with specified order;


1.2.0 (2016-12-27)
------------------
==================

* Drop MongoDB 2.X suport;
* Objects for update and remove results;
* Use Faker instead fake-factory.


1.1.4 (2016-08-20)
------------------
==================

* Add some features to ``Bulk``:
- ``Bulk.update_one(document, **kw)``: method for add update one document in bulk;
Expand All @@ -327,15 +329,15 @@ CHANGES


1.1.3 (2016-07-23)
------------------
==================

* Add ``QuerySet.ids`` method for get only documents id's from queryset;

* Add ``Money.total_cents`` method and ``Money.from_cents`` classmethod;


1.1 (2016-04-26)
----------------
================

* Add cacheing on queryset level and use it for ``ReferenceField``;

Expand All @@ -353,7 +355,7 @@ CHANGES


1.0 (2015-11-14)
----------------
================

* Change document structure. No more bad `BaseDocument.__data__` attribute:
- `BaseDocument.__raw__`: raw data from mongo;
Expand Down
Loading

0 comments on commit 9040962

Please sign in to comment.