blob: 2bd55cb49d420266d8f302b9ea97dd845801b542 [file] [log] [blame]
Sapan Bhatia084c0982017-04-21 14:47:40 +02001sync_attributes = ( 'test', 'argument', "scope" )
2
3def __init__(self, *args, **kwargs):
Scott Baker379404c2017-05-24 17:13:45 -07004 vtr_services = VTRService.objects.all()
Sapan Bhatia084c0982017-04-21 14:47:40 +02005 if vtr_services:
Scott Bakerc7958a92017-07-18 11:07:00 -07006 self._meta.get_field("owner").default = vtr_services[0].id
Sapan Bhatia084c0982017-04-21 14:47:40 +02007 super(VTRTenant, self).__init__(*args, **kwargs)
8
9def save(self, *args, **kwargs):
10 super(VTRTenant, self).save(*args, **kwargs)
11
12def delete(self, *args, **kwargs):
13 super(VTRTenant, self).delete(*args, **kwargs)
14