Transaction decorators / multiple databases : using=
|Reported by:||olb@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Documentation tells transaction decorators can be used with multiple databases :
@commit_on_success(using='db_alias') def func(request): ...
Doing like that raises an error and it seems that django code is actually written to work as follow :
@commit_on_success('db_alias') def func(request): ...
Change History (5)
comment:1 Changed 5 years ago by kmtracey
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted