Commit 2ca6ff65 authored by Mathieu Rodic's avatar Mathieu Rodic

[UPDATE] Changed the Node model to fit the new JSON field in node.metadata

https://forge.iscpif.fr/issues/1472
parent ce37993c
......@@ -3,7 +3,7 @@ from django.utils import timezone
from django.contrib.auth.models import User
from django_hstore import hstore
import jsonfield
from cte_tree.models import CTENode, CTENodeManager
# from cte_tree.query import CTEQuerySet
#from cte_tree.fields import DepthField, PathField, OrderingField
......@@ -125,7 +125,7 @@ class Node(CTENode):
language = models.ForeignKey(Language, blank=True, null=True, on_delete=models.SET_NULL)
date = models.DateField(default=timezone.now, blank=True)
metadata = hstore.DictionaryField(blank=True)
metadata = jsonfield.JSONField(blank=True)
ngrams = models.ManyToManyField(through='Node_Ngram', to='Ngram')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment