src/p4l/management/commands/get_theme_label.py
author ymh <ymh.work@gmail.com>
Fri, 30 Aug 2013 17:58:35 +0200
changeset 13 6296aa12fd71
parent 12 57efd01f1715
permissions -rw-r--r--
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.

# -*- coding: utf-8 -*-
from django.core.management import BaseCommand
from p4l.models import Theme
from p4l.utils import fill_label_for_model


class Command(BaseCommand):

    def handle(self, *args, **options):
        fill_label_for_model(Theme, 'theme', 'http://www.iiep.unesco.org/plan4learning/scheme/Themes')