[Python-modules-commits] [django-reversion] 03/13: Import django-reversion_2.0.8.orig.tar.gz

Michael Fladischer fladi at moszumanska.debian.org
Wed Nov 30 11:35:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository django-reversion.

commit 8cbfa911be50fa4eab5d6fef8ce1f4aafe6843cb
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Tue Nov 29 10:34:46 2016 +0100

    Import django-reversion_2.0.8.orig.tar.gz
---
 .coveragerc                                        |  11 +-
 .gitignore                                         |   3 +-
 .travis.yml                                        |  46 +-
 CHANGELOG.md                                       | 343 --------
 CHANGELOG.rst                                      | 641 ++++++++++++++
 MANIFEST.in                                        |   8 +-
 README.rst                                         |  53 +-
 docs/Makefile                                      | 153 ----
 docs/_include/admin.rst                            |  13 +
 docs/_include/create-revision-args.rst             |   5 +
 docs/_include/create-revision-manage-manually.rst  |   1 +
 docs/_include/create-revision-using.rst            |   1 +
 docs/_include/model-db-arg.rst                     |   2 +
 docs/_include/post-register.rst                    |   2 +
 docs/_include/signal-args.rst                      |   8 +
 docs/_include/throws-registration-error.rst        |   1 +
 docs/_include/throws-revert-error.rst              |   1 +
 docs/_include/throws-revision-error.rst            |   1 +
 docs/admin.rst                                     | 107 ++-
 docs/api.rst                                       | 526 ++++++++----
 docs/changelog.rst                                 |   1 +
 docs/commands.rst                                  |  37 +-
 docs/common-problems.rst                           |  12 +
 docs/conf.py                                       | 254 ++++--
 docs/diffs.rst                                     |  59 --
 docs/django-versions.rst                           |  41 +-
 docs/errors.rst                                    |  30 +
 docs/how-it-works.rst                              |  46 -
 docs/index.rst                                     |  65 +-
 docs/installation.rst                              |  35 -
 docs/make.bat                                      | 190 -----
 docs/middleware.rst                                |  29 +
 docs/migrations.rst                                |  72 --
 docs/signals.rst                                   |  40 +-
 docs/views.rst                                     |  45 +
 reversion/__init__.py                              |  39 +
 {src/reversion => reversion}/admin.py              | 250 +++---
 reversion/compat.py                                |  17 +
 {src/reversion => reversion}/errors.py             |   0
 .../locale/ar/LC_MESSAGES/django.mo                | Bin
 .../locale/ar/LC_MESSAGES/django.po                |   0
 .../locale/cs/LC_MESSAGES/django.mo                | Bin
 .../locale/cs/LC_MESSAGES/django.po                |   0
 .../locale/da/LC_MESSAGES/django.mo                | Bin
 .../locale/da/LC_MESSAGES/django.po                |   0
 .../locale/de/LC_MESSAGES/django.mo                | Bin
 .../locale/de/LC_MESSAGES/django.po                |   0
 .../locale/es/LC_MESSAGES/django.mo                | Bin
 .../locale/es/LC_MESSAGES/django.po                |   0
 .../locale/es_AR/LC_MESSAGES/django.mo             | Bin
 .../locale/es_AR/LC_MESSAGES/django.po             |   0
 .../locale/fr/LC_MESSAGES/django.mo                | Bin
 .../locale/fr/LC_MESSAGES/django.po                |   0
 .../locale/he/LC_MESSAGES/django.mo                | Bin
 .../locale/he/LC_MESSAGES/django.po                |   0
 .../locale/it/LC_MESSAGES/django.mo                | Bin
 .../locale/it/LC_MESSAGES/django.po                |   0
 .../locale/nb/LC_MESSAGES/django.mo                | Bin
 .../locale/nb/LC_MESSAGES/django.po                |   0
 .../locale/nl/LC_MESSAGES/django.mo                | Bin
 .../locale/nl/LC_MESSAGES/django.po                |   0
 .../locale/pl/LC_MESSAGES/django.mo                | Bin
 .../locale/pl/LC_MESSAGES/django.po                |   0
 .../locale/pt_BR/LC_MESSAGES/django.mo             | Bin
 .../locale/pt_BR/LC_MESSAGES/django.po             |   0
 .../locale/ru/LC_MESSAGES/django.mo                | Bin
 .../locale/ru/LC_MESSAGES/django.po                |   0
 .../locale/sk/LC_MESSAGES/django.mo                | Bin
 .../locale/sk/LC_MESSAGES/django.po                |   0
 .../locale/sv/LC_MESSAGES/django.mo                | Bin
 .../locale/sv/LC_MESSAGES/django.po                |   0
 .../locale/zh_CN/LC_MESSAGES/django.mo             | Bin
 .../locale/zh_CN/LC_MESSAGES/django.po             |   0
 .../locale/zh_Hans}/LC_MESSAGES/django.mo          | Bin
 .../locale/zh_Hans}/LC_MESSAGES/django.po          |   0
 .../commands => reversion/management}/__init__.py  |   0
 reversion/management/commands/__init__.py          |  57 ++
 .../management/commands/createinitialrevisions.py  |  74 ++
 reversion/management/commands/deleterevisions.py   |  95 +++
 reversion/middleware.py                            |  41 +
 .../migrations/0001_initial.py                     |   6 +-
 .../0001_squashed_0004_auto_20160611_1202.py       |  54 ++
 .../migrations/0002_auto_20141216_1509.py          |   0
 reversion/migrations/0003_auto_20160601_1600.py    | 103 +++
 reversion/migrations/0004_auto_20160611_1202.py    |  24 +
 .../reversion => reversion}/migrations/__init__.py |   0
 reversion/models.py                                | 318 +++++++
 reversion/revisions.py                             | 406 +++++++++
 reversion/signals.py                               |  10 +
 .../templates/reversion/change_list.html           |   0
 .../templates/reversion/object_history.html        |   5 +-
 .../templates/reversion/recover_form.html          |   2 +-
 .../templates/reversion/recover_list.html          |   4 +-
 .../templates/reversion/revision_form.html         |   2 +-
 reversion/views.py                                 |  65 ++
 setup.cfg                                          |   2 +
 setup.py                                           |  50 +-
 src/reversion/__init__.py                          |  12 -
 src/reversion/helpers.py                           |  85 --
 src/reversion/management/__init__.py               |   3 -
 .../management/commands/createinitialrevisions.py  | 145 ----
 .../management/commands/deleterevisions.py         | 216 -----
 src/reversion/middleware.py                        |  43 -
 src/reversion/models.py                            | 215 -----
 src/reversion/revisions.py                         | 667 ---------------
 src/reversion/signals.py                           |   6 -
 src/tests/manage.py                                |  10 -
 src/tests/test_reversion/admin.py                  |  88 --
 .../test_reversion/migrations/0001_initial.py      | 174 ----
 src/tests/test_reversion/models.py                 | 178 ----
 src/tests/test_reversion/tests.py                  | 942 ---------------------
 src/tests/test_reversion/views.py                  |  89 --
 src/tests/tests/settings.py                        | 108 ---
 src/tests/tests/urls.py                            |  31 -
 tests/manage.py                                    |  22 +
 .../test_reversion => tests/test_app}/__init__.py  |   0
 tests/test_app/migrations/0001_initial.py          |  97 +++
 .../test_app}/migrations/__init__.py               |   0
 tests/test_app/models.py                           | 104 +++
 {src/tests => tests/test_app}/tests/__init__.py    |   0
 tests/test_app/tests/base.py                       |  99 +++
 tests/test_app/tests/test_admin.py                 | 223 +++++
 tests/test_app/tests/test_api.py                   | 315 +++++++
 tests/test_app/tests/test_commands.py              | 195 +++++
 tests/test_app/tests/test_middleware.py            |  37 +
 tests/test_app/tests/test_models.py                | 346 ++++++++
 tests/test_app/tests/test_views.py                 |  42 +
 tests/test_app/urls.py                             |  10 +
 tests/test_app/views.py                            |  24 +
 .../commands => tests/test_project}/__init__.py    |   0
 tests/test_project/settings.py                     | 136 +++
 tests/test_project/urls.py                         |  11 +
 {src/tests/tests => tests/test_project}/wsgi.py    |   6 +-
 tox.ini                                            |  38 +
 134 files changed, 4678 insertions(+), 4545 deletions(-)

diff --git a/.coveragerc b/.coveragerc
index 279bbbe..e2170e5 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,3 +1,9 @@
+[run]
+source =
+    reversion
+    test_app
+    test_project
+
 [report]
 exclude_lines =
     # Have to re-enable the standard pragma
@@ -11,8 +17,5 @@ exclude_lines =
     # Don't complain if tests don't hit model __str__ methods.
     def __str__
 
-omit =
-    */venv/*
-    */virtualenv/*
-
 show_missing = True
+skip_covered = True
diff --git a/.gitignore b/.gitignore
index e87748d..9ea259e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,7 +8,8 @@
 dist
 build
 MANIFEST
-src/django_reversion.egg-info/
+*.egg-info/
 docs/_build
 .coverage
 *.sqlite3
+.tox
diff --git a/.travis.yml b/.travis.yml
index f6c55e7..6034fce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,35 +1,35 @@
 language: python
-sudo: false
 python:
-  - 2.7
-  - 3.4
-  - 3.5
+- 3.5
+sudo: false
 cache:
   directories:
-    - $HOME/.cache/pip
+  - "$HOME/.cache/pip"
 env:
-  - DJANGO=django==1.8.8
-  - DJANGO=django==1.8.8 DB_ENGINE="django.db.backends.postgresql_psycopg2" DB_NAME="test_project" DB_USER="postgres"
-  - DJANGO=django==1.8.8 DB_ENGINE="django.db.backends.mysql" DB_NAME="test_project" DB_USER="travis"
-  - DJANGO=django==1.9.2
-  - DJANGO=django==1.9.2 DB_ENGINE="django.db.backends.postgresql" DB_NAME="test_project" DB_USER="postgres"
-  - DJANGO=django==1.9.2 DB_ENGINE="django.db.backends.mysql" DB_NAME="test_project" DB_USER="travis"
+  global:
+  - PYTHONWARNINGS=default,ignore::PendingDeprecationWarning,ignore::ResourceWarning
+  - DJANGO_DATABASE_USER_POSTGRES=postgres
+  - DJANGO_DATABASE_USER_MYSQL=travis
 matrix:
   fast_finish: true
 services:
-  - postgresql
-  - mysql
+- postgresql
+addons:
+  mariadb: '10.1'
 install:
-  - travis_retry pip install $DJANGO
-  - if [[ "$DB_ENGINE" == "django.db.backends.postgresql" ]] ; then travis_retry pip install psycopg2; fi
-  - if [[ "$DB_ENGINE" == "django.db.backends.postgresql_psycopg2" ]] ; then travis_retry pip install psycopg2; fi
-  - if [[ "$DB_ENGINE" == "django.db.backends.mysql" ]] ; then travis_retry pip install mysqlclient ; fi
-  - pip install -e .[test,diff]
+- pip install 'tox>=2.3.1'
 before_script:
-  - if [[ "$DB_ENGINE" == "django.db.backends.mysql" ]] ; then mysql -e 'create database test_project'; fi
-  - if [[ "$DB_ENGINE" == "django.db.backends.postgresql_psycopg2" ]] ; then psql -c 'create database test_project;' -U postgres; fi
-  - if [[ "$DB_ENGINE" == "django.db.backends.postgresql" ]] ; then psql -c 'create database test_project;' -U postgres; fi
-script: coverage run src/tests/manage.py test src/tests/test_reversion/
-after_script: coverage report
+- mysql -e 'create database test_project'
+- psql -c 'create database test_project;' -U postgres;
+script: tox
+deploy:
+  provider: pypi
+  user: etianen
+  password:
+    secure: XW4/9HiChbPJSJe4d/MRcO+ViPGhW1iQ8kVi814KJh7mCxOAKijpW5hfdc9oSKB6d8iYB3OzZ7naIUU9GMce40bpeTgPDLVBLCSYKRNLuVoJdh+Q6ItGUiFf8kAJz5jgopG80QnCpLA9JvYxKVJ4amfYWWm204eQmIEnRRAd+Jk=
+  on:
+    tags: true
+    distributions: sdist bdist_wheel
+    repo: etianen/django-reversion
 notifications:
   email: false
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 55840bc..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,343 +0,0 @@
-# django-reversion changelog
-
-
-## 1.10.2 - 18/04/2016
-
-- Fixing deprecation warnings (@claudep).
-- Minor tweaks and bug fixes (@fladi, @claudep, @etianen).
-
-
-## 1.10.1 - 27/01/2016
-
-- Fixing some deprecation warnings (@ticosax).
-- Minor tweaks (@claudep, @etianen).
-
-
-## 1.10 - 02/12/2015
-
-- **Breaking:** Updated the location of [admin classes](http://django-reversion.readthedocs.org/en/latest/admin.html).
-
-    Prior to this change, you could access the `VersionAdmin` class using the following import:
-
-    ```py
-    # Old-style import for accessing the admin class.
-    import reversion
-
-    # Access admin class from the reversion namespace.
-    class YourModelAdmin(reversion.VersionAdmin):
-        ...
-    ```
-
-    In order to support Django 1.9, the admin class has been moved to the following
-    import:
-
-    ```py
-    # New-style import for accesssing admin class.
-    from reversion.admin import VersionAdmin
-
-    # Use the admin class directly.
-    class YourModelAdmin(VersionAdmin):
-        ...
-    ```
-
-- **Breaking:** Updated the location of [low-level API](http://django-reversion.readthedocs.org/en/latest/api.html) methods.
-    Prior to this change, you could access the low-level API using the following import:
-
-    ```py
-    # Old-style import for accessing the low-level API.
-    import reversion
-
-    # Use low-level API methods from the reversion namespace.
-    @reversion.register
-    class YourModel(models.Model):
-        ...
-    ```
-
-    In order to support Django 1.9, the low-level API
-    methods have been moved to the following import:
-
-    ```py
-    # New-style import for accesssing the low-level API.
-    from reversion import revisions as reversion
-
-    # Use low-level API methods from the revisions namespace.
-    @reversion.register
-    class YourModel(models.Model):
-        ...
-    ```
-
-- **Breaking:** Updated the location of [reversion signals](http://django-reversion.readthedocs.org/en/latest/signals.html).
-    Prior to this change, you could access the reversion signals using the following import:
-
-    ```py
-    # Old-style import for accessing the reversion signals
-    import reversion
-
-    # Use signals from the reversion namespace.
-    reversion.post_revision_commit.connect(...)
-    ```
-
-    In order to support Django 1.9, the reversion signals have been moved to the following
-    import:
-
-    ```py
-    # New-style import for accesssing the reversion signals.
-    from reversion.signals import pre_revision_commit, post_revision_commit
-
-    # Use reversion signals directly.
-    post_revision_commit.connect(...)
-    ```
-
-- Django 1.9 compatibility (@etianen).
-- Added spanish (argentina) translation (@gonzalobustos).
-- Minor bugfixes and tweaks (@Blitzstok, @IanLee1521, @lutoma, @siamalekpour, @etianen).
-
-
-## 1.9.3 - 07/08/2015
-
-- Fixing regression with admin redirects following save action (@etianen).
-
-
-## 1.9.2 - 07/08/2015
-
-- Fixing regression with "delete", "save as new" and "save and continue" button being shown in recover and revision admin views (@etianen).
-- Fixing regression where VersionAdmin.ignore_duplicate_revisions was ignored (@etianen).
-
-
-## 1.9.1 - 04/08/2015
-
-- Fixing packaging error that rendered the 1.9.0 release unusable. No way to cover up the mistake, so here's a brand new bugfix release! (@etianen).
-
-
-## 1.9.0 - 04/08/2015
-
-- Using database transactions do render consistent views of past revisions in database admin, fixing a lot of lingering minor issues (@etianen).
-- Correct handling of readonly fields in admin (@etianen).
-- Updates to Czech translation (@cuchac).
-- Arabic translation (@RamezIssac).
-- Fixing deleterevisions to work with Python2 (@jmurty).
-- Fixing edge-cases where an object does not have a PK (@johnfraney).
-- Tweaks, code cleanups and documentation fixes (@claudep, @johnfraney, @podloucky-init, Drew Hubl, @JanMalte, @jmurty, @etianen).
-
-
-
-## 1.8.7 - 21/05/2015
-
-- Fixing deleterevisions command on Python 3 (@davidfsmith).
-- Fixing Django 1.6 compatibility (@etianen).
-- Removing some Django 1.9 deprecation warnings (@BATCOH, @niknokseyer).
-- Minor tweaks (@nikolas, @etianen).
-
-
-## 1.8.6 - 13/04/2015
-
-- Support for MySQL utf8mb4 (@alexhayes).
-- Fixing some Django deprecation warnings (Drew Hubl, @khakulov, @adonm).
-- Versions passed through by reversion.post_revision_commit now contain a primary key (@joelarson).
-
-
-## 1.8.5 - 31/10/2014
-
-- Added support for proxy models (@AgDude, @bourivouh).
-- Allowing registration of models with django-reversion using custom signals (@ErwinJunge).
-- Fixing some Django deprecation warnings (@skipp, @narrowfail).
-
-
-## 1.8.4 - 07/09/2014
-
-- Fixing including legacy south migrations in PyPi package (@GeyseR).
-
-
-## 1.8.3 - 06/09/2014
-
-- Provisional Django 1.7 support (@etianen).
-- Multi-db and multi-manager support to management commands (@marekmalek).
-- Added index on reversion.date_created (@rkojedzinszky).
-- Minor bugfixes and documentation improvements (@coagulant).
-
-
-## 1.8.2 - 01/08/2014
-
-- reversion.register() can now be used as a class decorator (@aquavitae).
-- Danish translation (@Vandborg).
-- Improvements to Travis CI integration (@thedrow).
-- Simplified Chinese translation (@QuantumGhost).
-- Minor bugfixes and documentation improvements (@marekmalek, @dhoffman34, @mauricioabreu, @mark0978).
-
-
-## 1.8.1 - 29/05/2014
-
-- Slovak translation (@jbub).
-- Deleting a user no longer deletes the associated revisions (@daaray).
-- Improving handling of inline models in admin integration (@blueyed).
-- Improving error messages for proxy model registration (@blueyed).
-- Improvements to using migrations with custom user model (@aivins).
-- Removing sys.exit() in deleterevisions management command, allowing it to be used internally by Django projects (@tongwang).
-- Fixing some backwards-compatible admin deprecation warnings (Thomas Schreiber).
-- Fixing tests if RevisionMiddleware is used as a decorator in the parent project (@jmoldow).
-- Derived models, such as those generated by deferred querysets, now work.
-- Removed deprecated low-level API methods.
-
-
-## 1.8.0 - 01/11/2013
-
-- Django 1.6 compatibility (@niwibe & @meshy).
-- Removing type flag from Version model.
-- Using bulk_create to speed up revision creation.
-- Including docs in source distribution (@pquentin & @fladi).
-- Spanish translation (@alexander-ae).
-- Fixing edge-case bugs in revision middleware (@pricem & @oppianmatt).
-
-
-## 1.7.1 - 26/06/2013
-
--  Bugfixes when using a custom User model.
--  Minor bugfixes.
-
-
-## 1.7 - 27/02/2013
-
--  Django 1.5 compatibility.
--  Experimantal Python 3.3 compatibility!
-
-
-## 1.6.6 - 12/02/2013
-
--  Removing version checking code. It's more trouble than it's worth.
--  Dutch translation improvements.
-
-
-## 1.6.5 - 12/12/2012
-
--  Support for Django 1.4.3.
-
-
-## 1.6.4 - 28/10/2012
-
--  Support for Django 1.4.2.
-
-
-## 1.6.3 - 05/09/2012
-
--  Fixing issue with reverting models with unique constraints in the admin.
--  Enforcing permissions in admin views.
-
-
-## 1.6.2 - 31/07/2012
-
--  Batch saving option in createinitialrevisions.
--  Suppressing warning for Django 1.4.1.
-
-
-## 1.6.1 - 20/06/2012
-
--  Swedish translation.
--  Fixing formating for PyPi readme and license.
--  Minor features and bugfixes.
-
-
-## 1.6 - 27/03/2012
-
--  Django 1.4 compatibility.
-
-
-## 1.5.2 - 27/03/2012
-
--  Multi-db support.
--  Brazillian Portuguese translation.
--  New manage_manually revision mode.
-
-
-## 1.5.1 - 20/10/2011
-
--  Polish translation.
--  Minor bug fixes.
-
-
-## 1.5 - 04/09/2011
-
--  Added in simplified low level API methods, and deprecated old low level API methods.
--  Added in support for multiple revision managers running in the same project.
--  Added in significant speedups for models with integer primary keys.
--  Added in cleanup improvements to patch generation helpers.
--  Minor bug fixes.
-
-
-## 1.4 - 27/04/2011
-
--  Added in a version flag for add / change / delete annotations.
--  Added experimental deleterevisions management command.
--  Added a --comment option to createinitialrevisions management command.
--  Django 1.3 compatibility.
-
-
-## 1.3.3 - 05/03/2011
-
--  Improved resilience of revert() to database integrity errors.
--  Added in Czech translation.
--  Added ability to only save revisions if there is no change.
--  Fixed long-running bug with file fields in inline related admin models.
--  Easier debugging for createinitialrevisions command.
--  Improved compatibility with Oracle database backend.
--  Fixed error in MySQL tests.
--  Greatly improved performance of get_deleted() Version manager method.
--  Fixed an edge-case UnicodeError.
-
-
-## 1.3.2 - 22/10/2010
-
--  Added Polish translation.
--  Added French translation.
--  Improved resilience of unit tests.
--  Improved scaleability of Version.object.get_deleted() method.
--  Improved scaleability of createinitialrevisions command.
--  Removed post_syncdb hook.
--  Added new createinitialrevisions management command.
--  Fixed DoesNotExistError with OneToOneFields and follow.
-
-
-## 1.3.1 - 31/05/2010
-
-This release is compatible with Django 1.2.1.
-
--  Django 1.2.1 admin compatibility.
-
-
-## 1.2.1 - 03/03/2010
-
-This release is compatible with Django 1.1.1.
-
--  The django syncdb command will now automatically populate any
-   version-controlled models with an initial revision. This ensures existing
-   projects that integrate Reversion won't get caught out.
--  Reversion now works with SQLite for tables over 999 rows.
--  Added Hebrew translation.
-
-
-## 1.2 - 12/10/2009
-
-This release is compatible with Django 1.1.
-
--  Django 1.1 admin compatibility.
-
-
-## 1.1.2 - 23/07/2009
-
-This release is compatible with Django 1.0.4.
-
--  Doc tests.
--  German translation update.
--  Better compatibility with the Django trunk.
--  The ability to specify a serialization format used by the  ReversionAdmin
-   class when models are auto-registered.
--  Reduction in the number of database queries performed by the Reversion
--  admin interface.
-
-
-## 1.1.1 - 25/03/2010
-
-This release is compatible with Django 1.0.2.
-
--  German and Italian translations.
--  Helper functions for generating diffs.
--  Improved handling of one-to-many relationships in the admin.
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
new file mode 100644
index 0000000..66029e4
--- /dev/null
+++ b/CHANGELOG.rst
@@ -0,0 +1,641 @@
+.. _changelog:
+
+django-reversion changelog
+==========================
+
+2.0.8 - 28/11/2016
+------------------
+
+- Setting ``revision.user`` in ``process_response`` for middleware (@etianen).
+- Fixing localization of model primary keys in `recover_list.html` (@w4rri0r3k).
+- Documentation tweaks (@jaywink).
+
+
+2.0.7 - 31/10/2016
+------------------
+
+- Database migrations now db-aware (@alukach).
+- Added "revert" and "recover" context variables to admin templates (@kezabelle).
+- Added ``post_revision_commit`` and ``pre_revision_commit`` signals back in (@carlosxl).
+- Fixing datetime in admin change message (@arogachev).
+- Fixing performance bug in postgres (@st4lk).
+- Fixing admin change messages in Django 1.10+ (@claudep).
+- Fixing revision middleware behavior in Django 1.10+ (@etianen).
+- Documentation tweaks (@jschneier).
+- Deprecation fixes (@KhasanovBI, @zsiciarz, @claudep).
+- Releasing as a universal wheel (@adamchainz).
+
+
+2.0.6 - 21/07/2016
+------------------
+
+- Fixed ``RevisionMiddleware`` always rolling back transactions in gunicorn (@stebunovd, @etianen).
+- Tweaks and minor bugfixes (@SahilMak).
+
+
+2.0.5 - 29/06/2016
+------------------
+
+- Fixed LookupError when running migration 0003 with stale content types (@etianen).
+
+
+2.0.4 - 20/06/2016
+------------------
+
+- Fixed LookupError when running migration 0003 (@etianen).
+- Fixed duplicate versions using ``get_deleted()`` (@etianen).
+- Fixed unexpected deletion of underflowing revisions when using ``--keep`` switch with ``deleterevisions`` (@etianen).
+
+
+2.0.3 - 14/06/2016
+------------------
+
+- Added support for m2m fields with a custom ``through`` model (@etianen).
+
+
+2.0.2 - 13/06/2016
+------------------
+
+- Fixing migration 0003 in MySQL (@etianen).
+
+
+2.0.1 - 13/06/2016
+------------------
+
+- Improved performance of migration 0003 (@BertrandBordage).
+- De-duplicating ``Version`` table before applying migration 0004 (@BertrandBordage, @etianen).
+
+
+2.0.0 - 11/06/2016
+------------------
+
+django-reversion was first released in May 2008, and has been in active development ever since. Over this time it's developed a certain amount of cruft from legacy and unused features, resulting in needless complexity and multiple ways of achieving the same task.
+
+This release substantially cleans and refactors the codebase. Much of the top-level functionality remains unchanged or is very similar. The release notes are divided into subsections to make it easier to find out where you need to update your code.
+
+This release includes a migration for the ``Version`` model that may take some time to complete.
+
+
+General improvements
+^^^^^^^^^^^^^^^^^^^^
+
+* Dramatically improved performance of version lookup for models with a non-integer primary key (@etianen, @mshannon1123).
+* Documentation refactor (@etianen).
+* Test refactor (@etianen).
+* Minor tweaks and bugfixes (@etianen, @bmarika, @ticosax).
+
+
+Admin
+^^^^^
+
+* Fixed issue with empty revisions being created in combination with ``RevisionMiddleware`` (@etianen).
+
+* **Breaking:** Removed ``reversion_format`` property from ``VersionAdmin`` (@etianen).
+
+    Use ``VersionAdmin.reversion_register`` instead.
+
+    .. code::
+
+        class YourVersionAdmin(VersionAdmin):
+
+            def reversion_register(self, model, **options):
+                options["format"] = "yaml"
+                super(YourVersionAdmin, self).reversion_register(model, **options)
+
+* **Breaking:** Removed ``ignore_duplicate_revisions`` property from ``VersionAdmin`` (@etianen).
+
+    Use ``VersionAdmin.reversion_register`` instead.
+
+    .. code::
+
+        class YourVersionAdmin(VersionAdmin):
+
+            def reversion_register(self, model, **options):
+                options["ignore_duplicate_revisions"] = True
+                super(YourVersionAdmin, self).reversion_register(model, **options)
+
+
+
+
+Management commands
+^^^^^^^^^^^^^^^^^^^
+
+* **Breaking:** Refactored arguments to ``createinitialrevisions`` (@etianen).
+
+    All existing functionality should still be supported, but several parameter names have been updated to match Django coding conventions.
+
+    Check the command ``--help`` for details.
+
+* **Breaking:** Refactored arguments to ``deleterevisions`` (@etianen).
+
+    All existing functionality should still be supported, but several parameter names have been updated to match Django coding conventions, and some duplicate parameters have been removed. The confirmation prompt has been removed entirely, and the command now always runs in the ``--force`` mode from the previous version.
+
+    Check the command ``--help`` for details.
+
+
+Middleware
+^^^^^^^^^^
+
+* Added support for using ``RevisionMiddleware`` with new-style Django 1.10 ``MIDDLEWARE`` (@etianen).
+* Middleware wraps entire request in ``transaction.atomic()`` to preserve transactional integrity of revision and models (@etianen).
+
+
+View helpers
+^^^^^^^^^^^^
+
+* Added ``reversion.views.create_revision`` view decorator (@etianen).
+* Added ``reversion.views.RevisionMixin`` class-based view mixin (@etianen).
+
+
+Low-level API
+^^^^^^^^^^^^^
+
+* Restored many of the django-reversion API methods back to the top-level namespace (@etianen).
+* Revision blocks are now automatically wrapped in ``transaction.atomic()`` (@etianen).
+* Added ``for_concrete_model`` argument to ``reversion.register()`` (@etianen).
+* Added ``Version.objects.get_for_model()`` lookup function (@etianen).
+* Added ``reversion.add_to_revision()`` for manually adding model instances to an active revision (@etianen).
+* Removed ``Version.object_id_int`` field, in favor of a unified ``Version.object_id`` field for all primary key types (@etianen).
+
+* **Breaking:** ``reversion.get_for_object_reference()`` has been moved to ``Version.objects.get_for_object_reference()`` (@etianen).
+
+* **Breaking:** ``reversion.get_for_object()`` has been moved to ``Version.objects.get_for_object()`` (@etianen).
+
+* **Breaking:** ``reversion.get_deleted()`` has been moved to ``Version.objects.get_deleted()`` (@etianen).
+
+* **Breaking:** Refactored multi-db support (@etianen).
+
+    django-reversion now supports restoring model instances to their original database automatically. Several parameter names have also be updated to match Django coding conventions.
+
+    If you made use of the previous multi-db functionality, check the latest docs for details. Otherwise, everything should *just work*.
+
+* **Breaking:** Removed ``get_ignore_duplicates`` and ``set_ignore_duplicates`` (@etianen).
+
+    ``ignore_duplicates`` is now set in reversion.register() on a per-model basis.
+
+* **Breaking:** Removed ``get_for_date()`` function (@etianen).
+
+    Use ``get_for_object().filter(revision__date_created__lte=date)`` instead.
+
+* **Breaking:** Removed ``get_unique_for_object()`` function (@etianen).
+
+    Use ``get_for_object().get_unique()`` instead.
+
+* **Breaking:** Removed ``signal`` and ``eager_signals`` argument from ``reversion.register()`` (@etianen).
+
+    To create revisions on signals other than ``post_save`` and ``m2m_changed``, call ``reversion.add_to_revision()`` in a signal handler for the appropriate signal.
+
+    .. code:: python
+
+        from django.dispatch import receiver
+        import reversion
+        from your_app import your_custom_signal
+
+        @reciever(your_custom_signal)
+        def your_custom_signal_handler(instance, **kwargs):
+            if reversion.is_active():
+                reversion.add_to_revision(instance)
+
+    This approach will work for both eager and non-eager signals.
+
+* **Breaking:** Removed ``adapter_cls`` argument from ``reversion.register()`` (@etianen).
+
+* **Breaking:** Removed ``reversion.save_revision()`` (@etianen).
+
+    Use reversion.add_to_revision() instead.
+
+    .. code:: python
+
+        import reversion
+
+        with reversion.create_revision():
+            reversion.add_to_revision(your_obj)
+
+
+Signals
+^^^^^^^
+
+* **Breaking:** Removed ``pre_revision_commit`` signal (@etianen).
+
+    Use the Django standard ``pre_save`` signal for ``Revision`` instead.
+
+* **Breaking:** Removed ``post_revision_commit`` signal (@etianen).
+
+    Use the Django standard ``post_save`` signal for ``Revision`` instead.
+
+
+Helpers
+^^^^^^^
+
+* **Breaking:** Removed ``patch_admin`` function (@etianen).
+
+    Use ``VersionAdmin`` as a mixin to 3rd party ModelAdmins instead.
+
+    .. code::
+
+        @admin.register(SomeModel)
+        class YourModelAdmin(VersionAdmin, SomeModelAdmin):
+
+            pass
+
+* **Breaking:** Removed ``generate_diffs`` function (@etianen).
+
+    django-reversion no supports an official diff helper. There are much better ways of achieving this now, such as `django-reversion-compare <https://github.com/jedie/django-reversion-compare>`_.
+
+    The old implementation is available for reference from the `previous release <https://github.com/etianen/django-reversion/blob/release-1.10.2/src/reversion/helpers.py>`_.
+
+* **Breaking:** Removed ``generate_patch`` function (@etianen).
+
+    django-reversion no supports an official diff helper. There are much better ways of achieving this now, such as `django-reversion-compare <https://github.com/jedie/django-reversion-compare>`_.
+
+    The old implementation is available for reference from the `previous release <https://github.com/etianen/django-reversion/blob/release-1.10.2/src/reversion/helpers.py>`_.
+
+* **Breaking:** Removed ``generate_patch_html`` function (@etianen).
+
+    django-reversion no supports an official diff helper. There are much better ways of achieving this now, such as `django-reversion-compare <https://github.com/jedie/django-reversion-compare>`_.
+
+    The old implementation is available for reference from the `previous release <https://github.com/etianen/django-reversion/blob/release-1.10.2/src/reversion/helpers.py>`_.
+
+Models
+^^^^^^
+
+* **Breaking:** Ordering of ``-pk`` added to models ``Revision`` and ``Version``. Previous was the default ``pk``.
+
+1.10.2 - 18/04/2016
+-------------------
+
+* Fixing deprecation warnings (@claudep).
+* Minor tweaks and bug fixes (@fladi, @claudep, @etianen).
+
+
+1.10.1 - 27/01/2016
+-------------------
+
+* Fixing some deprecation warnings (@ticosax).
+* Minor tweaks (@claudep, @etianen).
+
+
+1.10 - 02/12/2015
+-----------------
+
+* **Breaking:** Updated the location of ``VersionAdmin``.
+
+    Prior to this change, you could access the ``VersionAdmin`` class using the following import:
+
+    .. code:: python
+
+        # Old-style import for accessing the admin class.
+        import reversion
+
+        # Access admin class from the reversion namespace.
+        class YourModelAdmin(reversion.VersionAdmin):
+
+            pass
+
+    In order to support Django 1.9, the admin class has been moved to the following
+    import:
+
+    .. code:: python
+
+        # New-style import for accesssing admin class.
+        from reversion.admin import VersionAdmin
+
+        # Use the admin class directly.
+        class YourModelAdmin(VersionAdmin):
+
+            pass
+
+* **Breaking:** Updated the location of low-level API methods.
+    Prior to this change, you could access the low-level API using the following import:
+
+    .. code:: python
+
+        # Old-style import for accessing the low-level API.
+        import reversion
+
+        # Use low-level API methods from the reversion namespace.
+        @reversion.register
+        class YourModel(models.Model):
+
+            pass
+
+    In order to support Django 1.9, the low-level API
+    methods have been moved to the following import:
+
+    .. code:: python
+
+        # New-style import for accesssing the low-level API.
+        from reversion import revisions as reversion
+
+        # Use low-level API methods from the revisions namespace.
+        @reversion.register
+        class YourModel(models.Model):
+
+            pass
+
+* **Breaking:** Updated the location of http://django-reversion.readthedocs.org/en/latest/signals.html.
+    Prior to this change, you could access the reversion signals using the following import:
+
+    .. code:: python
+
+        # Old-style import for accessing the reversion signals
+        import reversion
+
+        # Use signals from the reversion namespace.
+        reversion.post_revision_commit.connect(...)
+
+    In order to support Django 1.9, the reversion signals have been moved to the following
+    import:
+
+    .. code:: python
+
+        # New-style import for accesssing the reversion signals.
+        from reversion.signals import pre_revision_commit, post_revision_commit
+
+        # Use reversion signals directly.
+        post_revision_commit.connect(...)
+
+* Django 1.9 compatibility (@etianen).
+* Added spanish (argentina) translation (@gonzalobustos).
+* Minor bugfixes and tweaks (@Blitzstok, @IanLee1521, @lutoma, @siamalekpour, @etianen).
+
+
+1.9.3 - 07/08/2015
+------------------
+
+* Fixing regression with admin redirects following save action (@etianen).
+
+
+1.9.2 - 07/08/2015
+------------------
+
+* Fixing regression with "delete", "save as new" and "save and continue" button being shown in recover and revision admin views (@etianen).
+* Fixing regression where VersionAdmin.ignore_duplicate_revisions was ignored (@etianen).
+
+
+1.9.1 - 04/08/2015
+------------------
+
+* Fixing packaging error that rendered the 1.9.0 release unusable. No way to cover up the mistake, so here's a brand new bugfix release! (@etianen).
+
+
+1.9.0 - 04/08/2015
+------------------
+
+* Using database transactions do render consistent views of past revisions in database admin, fixing a lot of lingering minor issues (@etianen).
+* Correct handling of readonly fields in admin (@etianen).
+* Updates to Czech translation (@cuchac).
+* Arabic translation (@RamezIssac).
+* Fixing deleterevisions to work with Python2 (@jmurty).
+* Fixing edge-cases where an object does not have a PK (@johnfraney).
+* Tweaks, code cleanups and documentation fixes (@claudep, @johnfraney, @podloucky-init, Drew Hubl, @JanMalte, @jmurty, @etianen).
+
+
+1.8.7 - 21/05/2015
+------------------
+
+* Fixing deleterevisions command on Python 3 (@davidfsmith).
+* Fixing Django 1.6 compatibility (@etianen).
+* Removing some Django 1.9 deprecation warnings (@BATCOH, @niknokseyer).
+* Minor tweaks (@nikolas, @etianen).
+
+
... 9799 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-reversion.git



More information about the Python-modules-commits mailing list