def __init__(self, *args, **kwargs):

        super(CloneDatabaseForm, self).__init__(*args, **kwargs)

        if 'initial' in kwargs:
            instance = Database.objects.get(
                id=kwargs['initial']['origin_database_id'])
        elif self.data in 'origin_database_id':
            instance = Database.objects.get(id=self.data['origin_database_id'])

        if instance:
            LOG.debug("instance database form found! %s" % instance)
            self.define_engine_field(database=instance)
            self.define_available_plans(database=instance)

        self.initial['old_plan'] = instance.plan.id
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/logical/forms/database.py/CloneDatabaseForm.__init__/swapped operands of `in`