Skip to content

Commit a775deb

Browse files
committed
Add deprecation warning for db_model.
1 parent dee3ccc commit a775deb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

django_unicorn/decorators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import time
3+
import warnings
34

45
from django.conf import settings
56

@@ -20,6 +21,10 @@ def delete(self, model):
2021
`component.delete({ 'name': 'modelName', pk: 1})` -> `component.delete(modelInstance)`
2122
"""
2223

24+
warnings.warn(
25+
"db_model is deprecated and will be removed in 0.28.0", stacklevel=2,
26+
)
27+
2328
instance = args[0]
2429
model_dictionary = args[1]
2530

0 commit comments

Comments
 (0)