Skip to content

Commit 5c61ec5

Browse files
authored
Update README.md
1 parent 9651e8a commit 5c61ec5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,11 @@ This project is licensed under the MIT License - see the LICENSE file for detail
195195
- 🐛 Report issues
196196
- 📖 Contribute to documentation
197197
- 🤝 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

Comments
 (0)