code: def prepare_buckets(self):
          
          for mdl in self.registry.get_base_models():
              bucket = mdl(super_context).objects.adapter.bucket
              self.buckets[bucket.name] = bucket
docs: loads buckets to bucket cache.