<reponame>samuelmaudo/yepes<gh_stars>0
# -*- coding:utf-8 -*-

from __future__ import unicode_literals

from yepes.contrib.datamigrations.importation_plans.direct import DirectPlan


class ReplaceAllPlan(DirectPlan):

    def prepare_importation(self):
        model = self.migration.model
        manager = model._base_manager
        manager.truncate()


# -*- coding:utf-8 -*-

from __future__ import unicode_literals

from yepes.contrib.datamigrations.importation_plans.direct import DirectPlan


class ReplaceAllPlan(DirectPlan):

    def prepare_importation(self):
        model = self.migration.model
        manager = model._base_manager
        manager.truncate()
# -*- coding:utf-8 -*-