create KeyPublicationStatus object for Keys/Apis

def kps_callback(sender, instance, created, raw, **kwargs):
    ''' create KeyPublicationStatus object for Keys/Apis '''
    if created and not raw:
        if sender == Api:
            for key in Key.objects.all():
                KeyPublicationStatus.objects.create(key=key, api=instance)
        elif isinstance(instance, Key):
            for api in Api.objects.all():
                KeyPublicationStatus.objects.create(key=instance, api=api)