+
+ gm = GalleryMerger(self.gallery, other.gallery)
+ self.gallery = gm.merge()
+
+ # and move the gallery starts
+ if gm.was_merged:
+ for chunk in self[len(self) - len_other:]:
+ old_start = chunk.gallery_start or 1
+ chunk.gallery_start = old_start + gm.dest_size - gm.num_deleted
+ chunk.save()
+