File: CHANGES.md

package info (click to toggle)
python-django-ordered-model 3.7.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 592 kB
  • sloc: python: 2,139; sh: 38; makefile: 11
file content (237 lines) | stat: -rw-r--r-- 6,918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
Change log
==========

Unreleased
----------

3.7.4 - 2023-03-17
----------
- Relax Check for `OrderedModelManager` to a `Warning`, if the manager returns the correct queryset (#290)


3.7.3 - 2023-03-15
----------
- Restrict signal handler 'senders' to subclasses of `OrderedModelBase` to avoid query count regression due to `Collector.can_fast_delete` logic in `models/deletion.py` (#288)
- Fix `reorder_model` management command re-ordering with multiple `order_with_respect_to` values

3.7.2 - 2023-03-14
----------
- Fix a performance regression (unnecessary queries) in the WRT change detection (#286)
- Add a Check that `order_with_respect_to` specifies only ForeignKey fields
- Add a Check that our subclasses of ModelManager and QuerySet are used (#286) 


3.7.1 - 2023-03-06
----------

- Fix for `model.save()` falsely detecting WRT change from admin create since 3.7
- Cascaded deletes of `OrderedModel` instances now handled using signals (#182)

3.7 - 2023-03-03
----------

- Use bulk update method in `reorder_model` management command for performance (#273)
- Add tox builder for python 3.10, use upstream DRF with upstream django
- Emit a system Check failure if a subclass of `OrderedModelBase` fails to specify `Meta.ordering`
- Updating the value of fields within `order_with_respect_to` now adjusts ordering accordingly (#198)

3.6 - 2022-05-30
----------

- Add `serializers.OrderedModelSerializer` to allow Django Rest Framework to re-order models (#251 #264)
- Add tox builder for Django 4.0, drop building against 2.0 and 2.1 due to DRF compatibility.

3.5 - 2022-01-12
----------------

- Django 4.0 compatibility: Fix ChangeList constructor for Admin (#256)
- Remove usage of `assertEquals` in tests (#255)
- Add admin screenshots to README (#245)
- Fix reorder command for custom order field models (#257)


3.4.3 - 2021-04-20
------------------

- Fix packaging, setup.py was missing management command package path


3.4.2 - 2021-04-20
------------------

- Fix `OrderedTabularInline` for models with custom primary key field (#233)
- Add management command `reorder_model` that can re-order most models with a broken ordering (#240)
- Fix handling of keyword arguments passed to  `bulk_create` by Django 3 (#235)
- Fix inline admin support for Proxy Models by adding parent model to url name (#242)
- Migrated to GitHub Actions workflow (#241)

3.4.1 - 2020-05-11
------------------

- Fix regression in admin OrderedInlineMixin after refactor in 3.4.0

3.4.0 - 2020-05-11
------------------

- Fix `bulk_create` not returning
- Fix `OrderedModelQuerySet` returning parent class instances for polymorphic cases
- Support django 3.0
- Drop support python 3.4

3.3.0 - 2019-07-10
------------------

- `bulk_create` now works with `order_with_respect_to`
- more internal refactoring moved most methods to `OrderedModelQuerySet`

3.2.0 - 2019-07-10
------------------

- Internal refactoring now using `Manager` - probably will break some code
- provide `bulk_create`

3.1.1 - 2018-11-13
------------------

- Fix arrow-top and arrow-bottom not found

3.1.0 - 2018-11-10
------------------

- Remove depricated `allow_tags`
- Add `previous` and `next` methods
- Add `top` and `bottom` buttons in admin
- Delete duplicated code from InlineModelAdminMixin
- Add Simplified Chinese translations
- Use `import_string` instead of `__import__`
- Make order field's `verbose_name` translatable(NOTE: this will cause creation of new migration file, which will not affect db state)

3.0.0 - 2018-09-21
------------------

- Drop support for python 2.x
- Drop support for django 1.x
- Fix AdminInline for django > 2.1
- Do not install tests
- delete deprecated methods `move`, `move_up`, `move_down` and `_move`

2.1.0 - 2018-08-16
------------------

- Add support for Django 2.1
- Support `order_with_respect_to` on related fields
- Add Tabular and Stacked inline

2.0.0 - 2018-06-07
------------------

- Drop support for Django < 1.11

1.5.0 - 2018-06-07
------------------

- Add support for Django 2.0
- Fix problem where swap took a queryset instead of a model instance

1.4.3 - 2017-08-29
------------------

- Fix a problem with links in the admin when using multiple threads.

1.4.2 - 2017-08-18
------------------

- Use Django's version of `six`
- Fix various deprecations
- Fix missing up/down links with custom primary key

1.4.1 - 2017-04-16
------------------

### Fixed

- `pip install` not working due to missing `requirements.txt`

1.4.0 - 2017-04-14
------------------

### Added

- Support for ordering using a specified base class when using Multi-table inheritance
- Suport for Python 3.6, Django 1.10 and 1.11.

### Fixed

- The move up/down links in OrderedTabularInline
- Passing args to `filter()` which broke django-polymorphic.


1.3.0 – 2016-10-08
------------------

 - Add `extra_update` argument to various methods.
 - Fix bug in `order_with_respect_to` when using string in Python 3.

1.2.1 – 2016-07-12
------------------

 - Various bug fixes in admin
 - Add support for URL namespaces other than "admin"

1.2.0 – 2016-07-08
------------------

 - Remove support for Django <1.8 and Python 2.6
 - Support for multiple order_with_respect_to fields
 - Remove usage of deprecated django.conf.urls.patterns

1.1.0 – 2016-01-15
------------------

 - Add support for many-to-many models.
 - Add Italian translations.

1.0.0 – 2015-11-24
------------------

1.0, because why not. Seems to be working alright for everyone. Some little things in this release:

 - Add support for custom order field by inheriting from `OrderedModelBase` and setting `order_field_name`.
 - Add support for Python 3.
 - Drop support for Django 1.4.

0.4.2 – 2015-06-02
------------------

 - Fix admin buttons not working with custom primary keys.
 - Fix admin using deprecated `get_query_set` method.

0.4.1 – 2015-04-06
------------------

 - Add support for Django 1.7 and 1.8.
 - Fix deprecation warning about module\_name.
 - Add French translations.

0.4.0 – 2014-07-31
------------------

 - Models can now be moved to any position, not just up and down. `move_up()` and `move_down()` are replaced by `up()` and `down()`. See the readme for the full set of new methods.
 - Add `order_with_respect_to` option so models can be ordered based on another field.
 - The admin ordering controls are now rendered using templates.
 - Ordering now always starts from 0 and has no gaps. Previously, gaps in the ordering numbers could appear when models were deleted, etc.
 - Fix bug where objects always get the order of "0".
 - Models with custom primary keys can now be used as ordered models.


0.3.0 – 2013-10-25
------------------

 - Support for Django 1.4, 1.5 and 1.6.
 - Fix list_filter being deselected when moving in admin
 - Improve performance of ordering by adding index and using Max aggregate

0.2.0 – 2012-11-14
------------------

 - First release