summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gstudio/models.py9
-rw-r--r--objectapp/models.py8
2 files changed, 9 insertions, 8 deletions
diff --git a/gstudio/models.py b/gstudio/models.py
index 96abaa16..b1de4f50 100644
--- a/gstudio/models.py
+++ b/gstudio/models.py
@@ -760,12 +760,13 @@ class Nodetype(Node):
verbose_name=_('is a kind of'),
related_name='children')
- prior_nodes = models.ManyToManyField('self', null=True, blank=True,
+ prior_nodes = models.ManyToManyField('self', symmetrical=False,null=True, blank=True,
verbose_name=_('its meaning depends on '),
- related_name='posterior_nodes')
- posterior_nodes = models.ManyToManyField('self', null=True, blank=True,
+ related_name='nodetype_posterior_nodes')
+
+ posterior_nodes = models.ManyToManyField('self', symmetrical=False,null=True, blank=True,
verbose_name=_('required for the meaning of '),
- related_name='prior_nodes')
+ related_name='nodetype_prior_nodes')
image = models.ImageField(_('image'), upload_to=UPLOAD_TO,
blank=True, help_text=_('used for illustration'))
diff --git a/objectapp/models.py b/objectapp/models.py
index e09c0ac1..86da47ff 100644
--- a/objectapp/models.py
+++ b/objectapp/models.py
@@ -167,13 +167,13 @@ class Gbobject(Node):
excerpt = models.TextField(_('excerpt'), blank=True,
help_text=_('optional element'))
- prior_nodes = models.ManyToManyField('self', null=True, blank=True,
+ prior_nodes = models.ManyToManyField('self', symmetrical=False,null=True, blank=True,
verbose_name=_('depends on'),
- related_name='posterior_nodes')
+ related_name='gbobject_posterior_nodes')
- posterior_nodes = models.ManyToManyField('self', null=True, blank=True,
+ posterior_nodes = models.ManyToManyField('self', symmetrical=False,null=True, blank=True,
verbose_name=_('required for'),
- related_name='prior_nodes')
+ related_name='gbobject_prior_nodes')
tags = TagField(_('tags'))