diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 09:14:11 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 09:14:11 +0200 |
commit | c5e801a916e09e1778c99d3b005414f5c124a9aa (patch) | |
tree | bc47fa2a01a3dc2c85b819fd536eafd0cc4f8a26 /ishtar_common/models.py | |
parent | a712f5ddc3e3520cbe3076fec45205c47145c94f (diff) | |
download | Ishtar-c5e801a916e09e1778c99d3b005414f5c124a9aa.tar.bz2 Ishtar-c5e801a916e09e1778c99d3b005414f5c124a9aa.zip |
Models: change relation type to manage self relation on virtual class
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index b3fba3b1f..c2f75aba3 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1066,10 +1066,9 @@ class GeneralRelationType(GeneralType): symmetrical = models.BooleanField(_(u"Symmetrical")) tiny_label = models.CharField(_(u"Tiny label"), max_length=50, blank=True, null=True) - # # an inverse must be set - # inverse_relation = models.ForeignKey( - # 'RelationType', verbose_name=_(u"Inverse relation"), blank=True, - # null=True) + inverse_relation = models.ForeignKey( + 'self', verbose_name=_(u"Inverse relation"), blank=True, + null=True) class Meta: abstract = True |