Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame^] | 1 | def model_policy_exampletenant(pk): |
2 | with transaction.atomic(): | ||||
3 | tenant = ExampleTenant.objects.select_for_update().filter(pk=pk) | ||||
4 | if not tenant: | ||||
5 | return | ||||
6 | tenant = tenant[0] | ||||
7 | tenant.manage_container() | ||||
8 |