diff options
author | anuja <anuja@anuja-Latitude-D630.(none)> | 2012-06-19 12:01:09 +0530 |
---|---|---|
committer | anuja <anuja@anuja-Latitude-D630.(none)> | 2012-06-19 12:01:09 +0530 |
commit | 1c4a887781aaadf150f95122647b3cbbceffa21a (patch) | |
tree | 89d710ebb51521af15b3fa0f276e6f3c352bf32b /gstudio/models.py | |
parent | 55da7356717ae078ad6e456c4042bebb57be6cc4 (diff) | |
download | gnowsys-1c4a887781aaadf150f95122647b3cbbceffa21a.tar.gz |
modified models.py in both apps for symmetrical many-to-many relationships
Diffstat (limited to 'gstudio/models.py')
-rw-r--r-- | gstudio/models.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gstudio/models.py b/gstudio/models.py index 96abaa1..b1de4f5 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')) |