blob: ad69d03eafd331d50a15ef749ba0984458d40c6a [file] [log] [blame]
Sapan Bhatiace657e62017-04-21 14:20:41 +02001def __init__(self, *args, **kwargs):
2 exampleservice = ExampleService.get_service_objects().all()
3 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