Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
2ca6ff65
Commit
2ca6ff65
authored
Mar 12, 2015
by
Mathieu Rodic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] Changed the Node model to fit the new JSON field in node.metadata
https://forge.iscpif.fr/issues/1472
parent
ce37993c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
models.py
node/models.py
+2
-2
No files found.
node/models.py
View file @
2ca6ff65
...
@@ -3,7 +3,7 @@ from django.utils import timezone
...
@@ -3,7 +3,7 @@ from django.utils import timezone
from
django.contrib.auth.models
import
User
from
django.contrib.auth.models
import
User
from
django_hstore
import
hstore
import
jsonfield
from
cte_tree.models
import
CTENode
,
CTENodeManager
from
cte_tree.models
import
CTENode
,
CTENodeManager
# from cte_tree.query import CTEQuerySet
# from cte_tree.query import CTEQuerySet
#from cte_tree.fields import DepthField, PathField, OrderingField
#from cte_tree.fields import DepthField, PathField, OrderingField
...
@@ -125,7 +125,7 @@ class Node(CTENode):
...
@@ -125,7 +125,7 @@ class Node(CTENode):
language
=
models
.
ForeignKey
(
Language
,
blank
=
True
,
null
=
True
,
on_delete
=
models
.
SET_NULL
)
language
=
models
.
ForeignKey
(
Language
,
blank
=
True
,
null
=
True
,
on_delete
=
models
.
SET_NULL
)
date
=
models
.
DateField
(
default
=
timezone
.
now
,
blank
=
True
)
date
=
models
.
DateField
(
default
=
timezone
.
now
,
blank
=
True
)
metadata
=
hstore
.
Dictionary
Field
(
blank
=
True
)
metadata
=
jsonfield
.
JSON
Field
(
blank
=
True
)
ngrams
=
models
.
ManyToManyField
(
through
=
'Node_Ngram'
,
to
=
'Ngram'
)
ngrams
=
models
.
ManyToManyField
(
through
=
'Node_Ngram'
,
to
=
'Ngram'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment