forked from makinacorpus/django-safedelete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
256 lines (160 loc) · 5.32 KB
/
CHANGES
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
=========
CHANGELOG
=========
1.3.2 (unreleased)
==================
- Fix undelete count in admin #220
- Fix de translation
1.3.1 (2022-10-03)
==================
- Fix exclude exception #216
1.3.0 (2022-08-17)
==================
- Add typings #213
- Drop support for Django < 3.2 and Python 3.6
- Add an index for deleted field #153
1.2.3 (2022-08-17)
==================
- Implement NO_DELETE and HARD_DELETE for queries #209
- Soft-delete-cascade raises an exception when trying to delete a object that related object is PROTECT #210
1.2.2 (2022-05-03)
==================
- Fix soft delete cascade for generic relations #207
- Add count return to delete and undelete methods #204
1.2.1 (2022-04-29)
==================
- Fix related_objects for non-safedelete models.
1.2.0 (2022-04-26)
==================
- Adding SafeDeleteCascadeControlModel #197
- Primary key uniqueness not considered in update_or_create #200
1.1.2 (2021-12-16)
==================
- Add django 4.0 and python 3.10 compatibility and tests #191
- Fix highlight_deleted_field translations #183
1.1.1 (2021-11-15)
==================
- Add highlight_deleted_field #177
- Add new safedelete admin filter #175
- Bug: has_unique_fields() returns false for models.UniqueConstraint #179
1.1.0 (2021-09-23)
==================
- Fix attribute error when union queryset of safe delete model with others #152
- SET related objects after deleting #156
- Avoiding recursive call for delete function. #121
- Add SAFE_DELETE_FIELD_NAME setting #164
- Move filter visibility logic to Query to fix subquery in annotations #160
- Add functions to customize the policies delete behavior #167
1.0.0 (2021-02-15)
==================
- Drop support for Django < 2.2
- Fix deprecation warnings for Django 4.0
0.5.7 (2021-01-28)
==================
- Add visibility filter for union operations #145
- Set related fields when soft deleted #144
- has_unique_fields() now takes into account unique_together option #147
- Fix filtering in subqueries #148
0.5.6 (2020-07-20)
==================
- call self.save() instead of super in delete()
0.5.5 (2020-05-14)
==================
- Admin action now warns if some objects weren't undeleted
- Remove some pre-Django 1.11 support
0.5.4 (2019-12-02)
==================
- Django 3.0 compatibility
0.5.3 (2019-12-02)
==================
- Fix "Doing a .get on a queryset adds deleted objects #131"
0.5.2 (2019-08-19)
==================
- Fix performance issue with Django 2.2
- Fix executing soft delete on already soft-deleted items during cascade soft delete
0.5.1 (2018-07-02)
==================
- Fix possible unicode error in admin
0.5.0 (2018-05-29)
==================
- Remove support for Django 1.8 to 1.10 and Python 3.3.
(it should still works for now but isn't tested, use at your own risks).
- Fix update_or_create (#98)
0.4.5 (2018-01-31)
==================
- Fix an issue with Django 1.8 and `values_list`
- Django 2.0 compatibility
0.4.4 (2018-01-09)
==================
** Bugfixes **
- Fix latest and earliest
0.4.3
=====
** Bugfixes **
- Set SafeDeleteMixin as abstract
0.4.2
=====
** Bugfixes **
- iterator() now filter the deleted objects correctly.
- Fix prefetch_related() with all()
- Fix: "Cannot filter a query once a slice has been taken" error.
** Refactoring **
- Resolve Django 1.9+ allow_tags deprecation warning
- Fix docstring typo in SafeDeleteManager, SOFT_DELETE should be DELETED_INVISIBLE
0.4.1
=====
** New **
- Filtering on the deleted field is done on evaluation.
- Added specific managers: all_objects and deleted_objects.
- Added 'force_policy' feature to SafeDeleteQuerySet.
** Removed **
-
** Bugfixes **
- Fixed abstract intermediate models not working with SOFT_DELETE_CASCADE
** Refactoring **
- Renamed SafeDeleteMixin to SafeDeleteModel to better reflect the intended behavior. Using SafeDeleteMixin now throws a DeprecationWarning.
- Moved SafeDeleteQueryset
0.4.0
=====
** New **
- ``deleted`` is now a datetime.
** Refactoring **
- Globals (HARD_DELETE, SOFT_DELETE, ...) have been moved `to config.py`.
- Removed support for Django 1.4 to 1.7. You should use the 0.3.x branch if you need to use safedelete in Django <= 1.7.
- Remove factories to use mixins instead.
0.3.5
=====
** New **
- Change ``DELETED_VISIBLE_BY_PK`` to ``DELETED_VISIBLE_BY_FIELD`` to be able to change the field used.
0.3.4
=====
** New **
- Add a ``SOFT_DELETE_CASCADE`` policy which perform a SOFT_DELETE on safedelete related objects
- Django 1.8 compatibility
0.3.2
=====
- Prevent migration errors on django 1.8 by declaring the SafeDeleteManager (internal class in managers) as global
0.3.1
=====
- Fix issue with release on pypi not being the good one
0.3.0
=====
** New **
- Add a ``NO_DELETE`` policy which never soft or hard deletes an instance
- Django 1.8 compatibility
** Removed **
- Support of Django 1.2 and Django 1.3 has been removed
** Bugfixes **
- ``all_with_deleted`` method doesn't lose current queryset on a related manager
- uniqueness is now checked against soft deleted instances too
- prefetch_related() now works with SafedeleteQuerySet
- Fix the undelete action in the administration for active objects.
0.2.1 (2014-12-15)
==================
** New **
- Extends Django compatibility to Django 1.2
0.2.0 (2014-12-09)
==================
** New **
- Django compatilibty 1.3 => 1.7
- Add administration utilities