'Base setup: things that do not depend on other models/fields.'

def setup_base(self, model, name):

    if (self._setup_done and (not self.related)):
        self._setup_done = 'base'
    else:
        self._setup_attrs(model, name)
        if (not self.related):
            self._setup_regular_base(model)
        self._setup_done = 'base'
