Skip to content

Commit b520816

Browse files
Merge pull request #3 from treyhunner/master
merge latest
2 parents b53323c + b01b92c commit b520816

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2193
-699
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ charset = utf-8
88
indent_style = space
99
end_of_line = lf
1010
insert_final_newline = true
11+
max_line_length = 79
1112
trim_trailing_whitespace = true
1213

1314
[*.{py,rst,ini}]

.landscape.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
max-line-length: 79
2+
uses:
3+
- django

.travis.yml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,46 @@
11
language: python
22

3+
sudo: false
4+
35
python:
4-
- 2.6
56
- 2.7
6-
- 3.2
77
- 3.3
8+
- 3.4
9+
- 3.5
10+
- 3.6
811

912
env:
10-
- DJANGO=Django==1.4.13
11-
- DJANGO=Django==1.5.8
12-
- DJANGO=Django==1.6.5
13+
- DJANGO="Django>=1.6,<1.7"
1314
- DJANGO="Django>=1.7,<1.8"
15+
- DJANGO="Django>=1.8,<1.9"
16+
- DJANGO="Django>=1.9,<1.10"
17+
- DJANGO="Django>=1.10,<1.11"
18+
- DJANGO="Django>=1.11,<1.12"
1419

1520
install:
16-
- pip install coverage coveralls $DJANGO --use-mirrors
21+
- pip install -U coverage codecov
22+
- pip install -U $DJANGO
23+
- pip freeze
1724

18-
script: coverage run -a setup.py test
25+
script: coverage run setup.py test
1926

2027
matrix:
2128
exclude:
22-
- python: 2.6
23-
env: DJANGO=Django==1.6.5
24-
- python: 2.6
25-
env: DJANGO="Django>=1.7,<1.8"
26-
- python: 3.2
27-
env: DJANGO=Django==1.4.13
28-
- python: 3.3
29-
env: DJANGO=Django==1.4.13
30-
31-
include:
3229
- python: 3.4
30+
env: DJANGO="Django>=1.6,<1.7"
31+
- python: 3.5
32+
env: DJANGO="Django>=1.6,<1.7"
33+
- python: 3.5
3334
env: DJANGO="Django>=1.7,<1.8"
35+
- python: 3.6
36+
env: DJANGO="Django>=1.6,<1.7"
37+
- python: 3.6
38+
env: DJANGO="Django>=1.7,<1.8"
39+
- python: 3.3
40+
env: DJANGO="Django>=1.9,<1.10"
41+
- python: 3.3
42+
env: DJANGO="Django>=1.10,<1.11"
43+
- python: 3.3
44+
env: DJANGO="Django>=1.11,<1.12"
3445

35-
after_success: coveralls
46+
after_success: codecov

AUTHORS.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,44 @@ Authors
22
=======
33

44
- Aleksey Kladov
5+
- bradford281
6+
- Buddy Lindsey, Jr.
57
- Brian Dixon
68
- Corey Bertram
79
- Damien Nozay
810
- Daniel Levy
911
- Daniel Roschka
1012
- David Hite
13+
- Eduardo Cuducos
1114
- George Vilches
15+
- Grzegorz Bialy
1216
- Hamish Downer
13-
- jofusa
17+
- James Pulec
18+
- Joao Junior(@joaojunior)
1419
- Joao Pedro Francese
20+
- jofusa
21+
- John Whitlock
22+
- Jonathan Leroy
1523
- Jonathan Sanchez
1624
- Josh Fyne
1725
- Klaas van Schelven
18-
- Ross Lote
19-
- macro1
26+
- Maciej "RooTer" Urbański
27+
- Martin Bachwerk
2028
- Marty Alchin
2129
- Mauricio de Abreu Antunes
30+
- Micah Denbraver
2231
- Rajesh Pappula
32+
- Rod Xavier Bondoc
33+
- Ross Lote
34+
- Steven Klass
35+
- Steeve Chailloux
2336
- Trey Hunner
2437
- Ulysses Vilela
2538
- vnagendra
39+
- Lucas Wiman
40+
- Michael England
41+
- Gregory Bataille
42+
- Jesse Shapiro
2643

2744
Background
2845
==========

CHANGES.rst

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,79 @@
11
Changes
22
=======
33

4+
Unreleased
5+
----------
6+
- Use get_queryset rather than model.objects in history_view. (gh-303)
7+
- Change ugettext calls in models.py to ugettext_lazy
8+
9+
1.9.0 (2017-06-11)
10+
------------------
11+
- Add --batchsize option to the populate_history management command. (gh-231)
12+
- Add ability to show specific attributes in admin history list view. (gh-256)
13+
- Add Brazilian Portuguese translation file. (gh-279)
14+
- Fix locale file packaging issue. (gh-280)
15+
- Add ability to specify reason for history change. (gh-275)
16+
- Test against Django 1.11 and Python 3.6. (gh-276)
17+
- Add `excluded_fields` option to exclude fields from history. (gh-274)
18+
19+
1.8.2 (2017-01-19)
20+
------------------
21+
- Add Polish locale.
22+
- Add Django 1.10 support.
23+
24+
1.8.1 (2016-03-19)
25+
------------------
26+
- Clear the threadlocal request object when processing the response to prevent test interactions. (gh-213)
27+
28+
1.8.0 (2016-02-02)
29+
------------------
30+
- History tracking can be inherited by passing `inherit=True`. (gh-63)
31+
32+
1.7.0 (2015-12-02)
33+
------------------
34+
- Add ability to list history in admin when the object instance is deleted. (gh-72)
35+
- Add ability to change history through the admin. (Enabled with the `SIMPLE_HISTORY_EDIT` setting.)
36+
- Add Django 1.9 support.
37+
- Support for custom tables names. (gh-196)
38+
39+
1.6.3 (2015-07-30)
40+
------------------
41+
- Respect `to_field` and `db_column` parameters (gh-182)
42+
43+
1.6.2 (2015-07-04)
44+
------------------
45+
- Use app loading system and fix deprecation warnings on Django 1.8 (gh-172)
46+
- Update Landscape configuration
47+
48+
1.6.1 (2015-04-21)
49+
------------------
50+
- Fix OneToOneField transformation for historical models (gh-166)
51+
- Disable cascading deletes from related models to historical models
52+
- Fix restoring historical instances with missing one-to-one relations (gh-162)
53+
54+
1.6.0 (2015-04-16)
55+
------------------
56+
- Add support for Django 1.8+
57+
- Deprecated use of ``CustomForeignKeyField`` (to be removed)
58+
- Remove default reverse accessor to `auth.User` for historical models (gh-121)
59+
60+
1.5.4 (2015-01-03)
61+
------------------
62+
- Fix a bug when models have a ``ForeignKey`` with ``primary_key=True``
63+
- Do NOT delete the history elements when a user is deleted.
64+
- Add support for ``latest``
65+
- Allow setting a reason for change. [using option changeReason]
66+
67+
1.5.3 (2014-11-18)
68+
------------------
69+
- Fix migrations while using ``order_with_respsect_to`` (gh-140)
70+
- Fix migrations using south
71+
- Allow history accessor class to be overridden in ``register()``
72+
73+
1.5.2 (2014-10-15)
74+
------------------
75+
- Additional fix for migrations (gh-128)
76+
477
1.5.1 (2014-10-13)
578
------------------
679
- Removed some incompatibilities with non-default admin sites (gh-92)

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include MANIFEST.in
22
include *.rst
33
include *.txt
44
recursive-include docs *.rst
5+
recursive-include simple_history/locale *
56
recursive-include simple_history/templates *

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ clean-pyc:
1414
find . -name '*~' -exec rm -f {} +
1515

1616
init:
17-
pip install tox coverage Sphinx
17+
pip install "tox>=1.8" coverage Sphinx
1818

1919
test:
2020
coverage erase

README.rst

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,33 @@ django-simple-history
33

44
.. image:: https://secure.travis-ci.org/treyhunner/django-simple-history.png?branch=master
55
:target: http://travis-ci.org/treyhunner/django-simple-history
6-
.. image:: https://coveralls.io/repos/treyhunner/django-simple-history/badge.png?branch=master
7-
:target: https://coveralls.io/r/treyhunner/django-simple-history
8-
.. image:: https://pypip.in/v/django-simple-history/badge.png
9-
:target: https://crate.io/packages/django-simple-history
10-
.. image:: https://pypip.in/d/django-simple-history/badge.png
11-
:target: https://crate.io/packages/django-simple-history
6+
:alt: Build Status
7+
8+
.. image:: https://img.shields.io/codecov/c/github/treyhunner/django-simple-history/master.svg
9+
:target: http://codecov.io/github/treyhunner/django-simple-history?branch=master
10+
:alt: Test Coverage
11+
12+
.. image:: https://img.shields.io/pypi/v/django-simple-history.svg
13+
:target: https://pypi.python.org/pypi/django-simple-history
14+
:alt: PyPI Version
15+
16+
.. image:: https://landscape.io/github/treyhunner/django-simple-history/master/landscape.png
17+
:target: https://landscape.io/github/treyhunner/django-simple-history/master
18+
:alt: Code Health
19+
1220

1321
django-simple-history stores Django model state on every create/update/delete.
1422

15-
This app requires Django 1.4.13 or greater and Python 2.6 or greater.
23+
This app requires Django 1.6 or greater and Python 2.7, 3.3, or greater.
1624

1725
Getting Help
1826
------------
1927

20-
Documentation is available at https://django-simple-history.readthedocs.org/
28+
Documentation is available at https://django-simple-history.readthedocs.io/
2129

2230
Issue tracker is at https://github.com/treyhunner/django-simple-history/issues
2331

2432
Pull requests are welcome. Read the CONTRIBUTING file for tips on
2533
submitting a pull request.
2634

2735
.. _PyPI: https://pypi.python.org/pypi/django-email-log/
28-
29-
30-
.. image:: https://d2weczhvl823v0.cloudfront.net/treyhunner/django-simple-history/trend.png
31-
:alt: Bitdeli badge
32-
:target: https://bitdeli.com/free
33-

doc-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx==1.2.3
2+
sphinx-autobuild==0.3.0

0 commit comments

Comments
 (0)