Transaction decorators / multiple databases : using=
|Reported by:||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 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|