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 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')