blob: 9eb1f862d9e2951cf7e179c3cc55321ec5461c3b [file] [log] [blame]
Sapan Bhatiace657e62017-04-21 14:20:41 +02001def __init__(self, *args, **kwargs):
Scott Baker589e6c42017-05-25 16:55:18 -07002 exampleservice = ExampleService.objects.all()
Sapan Bhatiace657e62017-04-21 14:20:41 +02003 if exampleservice:
4 self._meta.get_field('provider_service').default = exampleservice[0].id
5 super(ExampleTenant, self).__init__(*args, **kwargs)
6
7def save(self, *args, **kwargs):
8 super(ExampleTenant, self).save(*args, **kwargs)
9 model_policy_exampletenant(self.pk)
10
11def delete(self, *args, **kwargs):
12 self.cleanup_container()
13 super(ExampleTenant, self).delete(*args, **kwargs)
14