From 97c33adc5bb3bef5c68ee6af5d04996b300ebef5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 17 Jul 2016 13:34:39 +0200 Subject: Context records: short_label -> tiny_label, explicit relation in exports --- ishtar_common/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 1e878d2a1..bbd2923a0 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -728,8 +728,8 @@ class BaseHistorizedItem(Imported): class GeneralRelationType(GeneralType): order = models.IntegerField(_(u"Order"), default=1) symmetrical = models.BooleanField(_(u"Symmetrical")) - short_label = models.CharField(_(u"Short label"), max_length=100, - blank=True, null=True) + 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, @@ -744,8 +744,8 @@ class GeneralRelationType(GeneralType): raise ValidationError( _(u"Cannot have symmetrical and an inverse_relation")) - def get_short_label(self): - return self.short_label or self.label or u"" + def get_tiny_label(self): + return self.tiny_label or self.label or u"" def save(self, *args, **kwargs): obj = super(GeneralRelationType, self).save(*args, **kwargs) -- cgit v1.2.3