Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 1 | def model_policy_volt(pk): |
2 | # TODO: this should be made in to a real model_policy | ||||
3 | with transaction.atomic(): | ||||
4 | volt = VOLTTenant.objects.select_for_update().filter(pk=pk) | ||||
5 | if not volt: | ||||
6 | return | ||||
7 | volt = volt[0] | ||||
8 | volt.manage_vcpe() | ||||
9 | volt.manage_subscriber() | ||||
10 | volt.cleanup_orphans() | ||||
11 |