You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Confirm support for Django 5.0. Thanks @adamchainz!
7
+
- Remove urlman from required packages. Thanks @DmytroLitvinov!
8
+
- Add an optional Django check to avoid errors by not inheriting from `LifecycleModelMixin` (or `LifecycleModel`)
9
+
10
+
## 1.0.2 (September 2023)
11
+
12
+
- Correct package info to note that Django 4.0, 4.1, and 4.2 are supported.
13
+
14
+
## 1.0.1 (August 2023)
15
+
16
+
- Initial state gets reset using `transaction.on_commit()`, fixing the `has_changed()` and `initial_value()` methods for on_commit hooks. Thanks @alb3rto269!
17
+
18
+
19
+
## 1.0.0 (May 2022)
20
+
21
+
- Drops Python 3.6 support
22
+
- Adds `priority` hook kwarg to control the order in which hooked methods fire. Thanks @EnriqueSoria!
- Fixes `initial_value(field_name)` behavior - should return value even if no change. Thanks @adamJLev!
107
+
108
+
## 0.3.2 (February 2019)
109
+
110
+
- Fixes bug preventing hooks from firing for custom PKs. Thanks @atugushev!
111
+
112
+
## 0.3.1 (August 2018)
113
+
114
+
- Fixes m2m field bug, in which accessing auto-generated reverse field in `before_create` causes exception b/c PK does not exist yet. Thanks @garyd203!
115
+
116
+
## 0.3.0 (April 2018)
117
+
118
+
- Resets model's comparison state for hook conditions after `save` called.
119
+
120
+
## 0.2.4 (April 2018)
121
+
122
+
- Fixed support for adding multiple `@hook` decorators to same method.
123
+
124
+
## 0.2.3 (April 2018)
125
+
126
+
- Removes residual mixin methods from earlier implementation.
127
+
128
+
## 0.2.2 (April 2018)
129
+
130
+
- Save method now accepts `skip_hooks`, an optional boolean keyword argument that controls whether hooked methods are called.
131
+
132
+
## 0.2.1 (April 2018)
133
+
134
+
- Fixed bug in `_potentially_hooked_methods` that caused unwanted side effects by accessing model instance methods decorated with `@cache_property` or `@property`.
135
+
136
+
## 0.2.0 (April 2018)
137
+
138
+
- Added Django 1.8 support. Thanks @jtiai!
139
+
- Tox testing added for Python 3.4, 3.5, 3.6 and Django 1.8, 1.11 and 2.0. Thanks @jtiai!
Copy file name to clipboardExpand all lines: README.md
+1-137Lines changed: 1 addition & 137 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,143 +64,7 @@ Instead of overriding `save` and `__init__` in a clunky way that hurts readabili
64
64
65
65
# Changelog
66
66
67
-
## 1.0.3 (November 2023)
68
-
69
-
- Drop support for Django < 2.2.
70
-
- Confirm support for Django 5.0. Thanks @adamchainz!
71
-
- Remove urlman from required packages. Thanks @DmytroLitvinov!
72
-
- Add an optional Django check to avoid errors by not inheriting from `LifecycleModelMixin` (or `LifecycleModel`)
73
-
74
-
## 1.0.2 (September 2023)
75
-
76
-
- Correct package info to note that Django 4.0, 4.1, and 4.2 are supported.
77
-
78
-
## 1.0.1 (August 2023)
79
-
80
-
- Initial state gets reset using `transaction.on_commit()`, fixing the `has_changed()` and `initial_value()` methods for on_commit hooks. Thanks @alb3rto269!
81
-
82
-
83
-
## 1.0.0 (May 2022)
84
-
85
-
- Drops Python 3.6 support
86
-
- Adds `priority` hook kwarg to control the order in which hooked methods fire. Thanks @EnriqueSoria!
- Fixes `initial_value(field_name)` behavior - should return value even if no change. Thanks @adamJLev!
171
-
172
-
## 0.3.2 (February 2019)
173
-
174
-
- Fixes bug preventing hooks from firing for custom PKs. Thanks @atugushev!
175
-
176
-
## 0.3.1 (August 2018)
177
-
178
-
- Fixes m2m field bug, in which accessing auto-generated reverse field in `before_create` causes exception b/c PK does not exist yet. Thanks @garyd203!
179
-
180
-
## 0.3.0 (April 2018)
181
-
182
-
- Resets model's comparison state for hook conditions after `save` called.
183
-
184
-
## 0.2.4 (April 2018)
185
-
186
-
- Fixed support for adding multiple `@hook` decorators to same method.
187
-
188
-
## 0.2.3 (April 2018)
189
-
190
-
- Removes residual mixin methods from earlier implementation.
191
-
192
-
## 0.2.2 (April 2018)
193
-
194
-
- Save method now accepts `skip_hooks`, an optional boolean keyword argument that controls whether hooked methods are called.
195
-
196
-
## 0.2.1 (April 2018)
197
-
198
-
- Fixed bug in `_potentially_hooked_methods` that caused unwanted side effects by accessing model instance methods decorated with `@cache_property` or `@property`.
199
-
200
-
## 0.2.0 (April 2018)
201
-
202
-
- Added Django 1.8 support. Thanks @jtiai!
203
-
- Tox testing added for Python 3.4, 3.5, 3.6 and Django 1.8, 1.11 and 2.0. Thanks @jtiai!
0 commit comments