blob: 8ac7d9e6855d526bc806b268cf281fcc67110e69 [file] [log] [blame]
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +02001def __init__(self, *args, **kwargs):
Scott Baker2d200572017-05-25 10:52:00 -07002 onos_services = ONOSService.objects.all()
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +02003 if onos_services:
Scott Baker8d8f9922017-07-17 17:30:42 -07004 self._meta.get_field("owner").default = onos_services[0].id
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +02005 super(ONOSApp, self).__init__(*args, **kwargs)
6