src/p4l/management/commands/get_country_label.py
author cavaliet
Mon, 02 Sep 2013 16:27:06 +0200
changeset 18 88d675d5e27e
parent 12 57efd01f1715
permissions -rw-r--r--
Merge with 19fe06edb58d529e642ddd9aff6eccaddcc6161c

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


class Command(BaseCommand):

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