src/p4l/management/commands/get_subject_label.py
author ymh <ymh.work@gmail.com>
Tue, 03 Sep 2013 12:31:05 +0200
changeset 25 9d1f73118faa
parent 12 57efd01f1715
permissions -rw-r--r--
Correction to include language in import of some objects (periodical, serie,...)

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


class Command(BaseCommand):

    def handle(self, *args, **options):
        fill_label_for_model(Subject, 'subject', 'http://skos.um.es/unescothes/CS000')