Murat Parlakisik | 638c65f | 2017-05-31 11:10:24 +0300 | [diff] [blame^] | 1 | def model_policy_monitoring_channel(pk): |
2 | # TODO: this should be made in to a real model_policy | ||||
3 | with transaction.atomic(): | ||||
4 | mc = MonitoringChannel.objects.select_for_update().filter(pk=pk) | ||||
5 | if not mc: | ||||
6 | return | ||||
7 | mc = mc[0] | ||||
8 | mc.manage_container() |