'Runs on initialization and after cloning. Any attributes that would
normally be set in __init__ should go in here, instead, so that they
are also set up after a clone() call.'

def _setup_query(self):

    self.values = []
    self.related_ids = None
    if (not hasattr(self, 'related_updates')):
        self.related_updates = {}
