blob: d0935def4366397e94b267d820a133eed59c1e4d [file] [log] [blame]
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02001def 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