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
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,3 +195,11 @@ This project is licensed under the MIT License - see the LICENSE file for detail
195
195
- 🐛 Report issues
196
196
- 📖 Contribute to documentation
197
197
- 🤝 Submit pull requests
198
+
199
+
## DEPRECATION NOTICE
200
+
### 0.22.2
201
+
The `service` attribute in `ModelController` has been changed from a class object to an **instance** object. When creating a custom `ModelService` for a `ModelController`, you must specify it using `service_type`.
202
+
203
+
This is because services are now injected as dependencies during controller instantiation. Service instantiation is delegated to the injector package, so ensure that any additional dependencies required by your `ModelService` are properly registered in the dependency injection container.
204
+
205
+
For more details, please refer to the [documentation](https://eadwincode.github.io/django-ninja-extra/api_controller/model_controller/03_model_service/#advanced-service-patterns)
0 commit comments