src/core/wp_utils.py
changeset 35 859862939996
parent 33 61c3ffd94f11
child 61 0048668779c0
--- a/src/core/wp_utils.py	Tue Jun 25 10:28:25 2013 +0200
+++ b/src/core/wp_utils.py	Tue Jun 25 15:34:18 2013 +0200
@@ -4,6 +4,7 @@
 from django.utils.http import urlquote
 from wikitools import api, wiki
 import logging
+from core.models.term import TERM_WK_LINK_SEMANTIC_LEVEL_DICT
 
 logger = logging.getLogger(__name__)
 site = None
@@ -191,6 +192,7 @@
         term.wp_label = new_label
     if status is not None:
         term.url_status = status
+        term.link_semantic_level = TERM_WK_LINK_SEMANTIC_LEVEL_DICT['--']
     term.wikipedia_url = url
     term.wikipedia_pageid = pageid
     term.dbpedia_uri = dbpedia_uri