diff options
Diffstat (limited to 'meetingtools/apps/room/management/commands/import_rooms.py')
-rw-r--r-- | meetingtools/apps/room/management/commands/import_rooms.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meetingtools/apps/room/management/commands/import_rooms.py b/meetingtools/apps/room/management/commands/import_rooms.py new file mode 100644 index 0000000..7944be8 --- /dev/null +++ b/meetingtools/apps/room/management/commands/import_rooms.py @@ -0,0 +1,11 @@ +from django.core.management import BaseCommand +from meetingtools.apps.cluster.models import ACCluster +from meetingtools.apps.room.tasks import import_acc + +__author__ = 'leifj' + +class Command(BaseCommand): + + def handle(self, *args, **options): + for acc in ACCluster.objects.all(): + import_acc(acc,since=0)
\ No newline at end of file |