Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 1 | sync_attributes = ( 'test', 'argument', "scope" ) |
| 2 | |
| 3 | def __init__(self, *args, **kwargs): |
| 4 | vtr_services = VTRService.get_service_objects().all() |
| 5 | if vtr_services: |
| 6 | self._meta.get_field("provider_service").default = vtr_services[0].id |
| 7 | super(VTRTenant, self).__init__(*args, **kwargs) |
| 8 | |
| 9 | def save(self, *args, **kwargs): |
| 10 | super(VTRTenant, self).save(*args, **kwargs) |
| 11 | |
| 12 | def delete(self, *args, **kwargs): |
| 13 | super(VTRTenant, self).delete(*args, **kwargs) |
| 14 | |