Skip to content

Commit

Permalink
Merge pull request #113 from paulocheque/release-3.0.0
Browse files Browse the repository at this point in the history
[release] Release 3.0.0
  • Loading branch information
paulocheque committed Jan 5, 2020
2 parents a773737 + aff2a1e commit d79ebc6
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=2.0.0
VERSION=3.0.0

# Python env tasks

Expand Down
20 changes: 19 additions & 1 deletion README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Django Dynamic Fixture
[![Coverage Status](https://coveralls.io/repos/paulocheque/django-dynamic-fixture/badge.svg?branch=master)](https://coveralls.io/r/paulocheque/django-dynamic-fixture?branch=master)
[![PyPI version](https://badge.fury.io/py/django-dynamic-fixture.svg)](https://badge.fury.io/py/django-dynamic-fixture)

**Latest version: 2.0.0 (2017/12)**
**Latest version: 3.0.0 (Jan 2020)**

Django Dynamic Fixture (DDF) is a complete and simple library to create dynamic model instances for testing purposes.

Expand All @@ -16,3 +16,21 @@ Documentation
-------------

http://django-dynamic-fixture.readthedocs.org/en/latest/index.html


Basic example
-------------

```python
from ddf import G

def test_search_book_by_author():
author1 = G(Author)
author2 = G(Author)
book1 = G(Book, authors=[author1], main_author__name='Eistein')
book2 = G(Book, authors=[author2])
books = Book.objects.search_by_author(author1.name)
assert book1 in books
assert book2 not in books
assert book1.main_author.name == 'Eistein'
```
23 changes: 23 additions & 0 deletions docs/source/change_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ Change Log

Date format: yyyy/mm/dd

Version 3.0.0 - 2020/01/05
-------------------------------------------------------------------------------
* <http://pypi.python.org/pypi/django-dynamic-fixture/3.0.0>
* New ``teach`` method that replaced the old ``shelve=True``.
* Support to ``app_label.ModelName`` strings instead of the model class.
* New ``ddf`` shortcut: ``from ddf import G, N, C, P, teach``.
* Support for **Django 3.0.0**.
* New ``ddf_check_models`` method to print a compatibility report.
* Added Python 3 Type Hints.
* Added native support for the ``Postgres.JSONField``.
* Added native support for Django-Polymorphic models.
* Bugfix for the ``data_fixture`` parameter to accept string alias.
* Another small bugfixes with ``choices`` parameter.
* Many internal refactorings.
* Travis/Tests integration fixed.
* Documentation organised, updated and simplified.
* Changed the default value of the ``persist_dependencies`` in ``N`` from True to False.
* DDF_USE_LIBRARY settings removed. Now, it is always activated by default.
* DDF_VALIDATE_ARGS settings removed. Now, it is always activated by default.
* DDF_FILL_NULLABLE_FIELDS default changed from True to False
* DDF_NUMBER_OF_LAPS default changed from 1 to 0
* Bugfix for named primary keys.

Version 2.0.0 - 2017/12/08
-------------------------------------------------------------------------------
* <http://pypi.python.org/pypi/django-dynamic-fixture/2.0.0>
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
# built documents.
#
# The short X.Y version.
version = '1.7.0'
version = '3.0.0'
# The full version, including alpha/beta/rc tags.
release = '1.7.0'
release = '3.0.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Update version and save
# Go to 'files' link and upload the file

VERSION = '2.0.0'
VERSION = '3.0.0'

tests_require = [
]
Expand Down

0 comments on commit d79ebc6

Please sign in to comment.