from django.core.management.base import BaseCommand, CommandError
from apps.donar.models import Room
from apps.donar.utils import migrate_data_rooms


class Command(BaseCommand):
    help = "Imports Rooms from Univis PRG"

    def add_arguments(self, parser):
        pass

    def handle(self, *args, **options):
        migrate_data_rooms.main()
        self.stdout.write(self.style.SUCCESS('Successfully migrate data'))
