7
7
from .compat import get_callable
8
8
9
9
# List Editable Policy
10
- # 0 do not save updated records, save others, show message to the user
11
- # 1 abort whole transaction
10
+ # 1 do not save updated records, save others, show message to the user
11
+ # 2 abort whole transaction
12
12
CONCURRENCY_LIST_EDITABLE_POLICY_SILENT = 1
13
13
CONCURRENCY_LIST_EDITABLE_POLICY_ABORT_ALL = 2
14
14
CONCURRENCY_POLICY_RAISE = 4
@@ -21,7 +21,6 @@ class AppSettings:
21
21
defaults = {
22
22
'ENABLED' : True ,
23
23
'AUTO_CREATE_TRIGGERS' : True ,
24
- 'MANUAL_TRIGGERS' : False , # deprecated: use AUTO_CREATE_TRIGGERS
25
24
'FIELD_SIGNER' : 'concurrency.forms.VersionFieldSigner' ,
26
25
'POLICY' : CONCURRENCY_LIST_EDITABLE_POLICY_SILENT ,
27
26
'CALLBACK' : 'concurrency.views.callback' ,
@@ -67,10 +66,6 @@ def _set_attr(self, prefix_name, value):
67
66
"{} is not a valid value for `CALLBACK`. It must be a callable or a fullpath to callable. " .format (
68
67
value ))
69
68
self ._callback = func
70
- elif name == "MANUAL_TRIGGERS" :
71
- warnings .warn ("MANUAL_TRIGGERS is deprecated and will be removed in 2.5. Use AUTO_CREATE_TRIGGERS" ,
72
- category = DeprecationWarning )
73
- self .AUTO_CREATE_TRIGGERS = not value
74
69
elif name == "TRIGGERS_FACTORY" :
75
70
original = dict (value )
76
71
for k , v in original .items ():
0 commit comments